|
|
|
@ -14,7 +14,7 @@ RSpec.describe Admin::ExportDomainAllowsController, type: :controller do
|
|
|
|
|
|
|
|
|
|
get :export, params: { format: :csv }
|
|
|
|
|
expect(response).to have_http_status(200)
|
|
|
|
|
expect(response.body).to eq(IO.read(File.join(file_fixture_path, 'domain_allows.csv')))
|
|
|
|
|
expect(response.body).to eq(File.read(File.join(file_fixture_path, 'domain_allows.csv')))
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ RSpec.describe Admin::ExportDomainAllowsController, type: :controller do
|
|
|
|
|
# Domains should now be added
|
|
|
|
|
get :export, params: { format: :csv }
|
|
|
|
|
expect(response).to have_http_status(200)
|
|
|
|
|
expect(response.body).to eq(IO.read(File.join(file_fixture_path, 'domain_allows.csv')))
|
|
|
|
|
expect(response.body).to eq(File.read(File.join(file_fixture_path, 'domain_allows.csv')))
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'displays error on no file selected' do
|
|
|
|
|