Add helper methods for domains allow and export blocks files (#28196)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2023-12-04 08:52:21 +00:00
1 parent 3ec263bf15
commit d848d8d87c
2 files changed
+15 -3

No files matched your search

@@ -26,7 +26,13 @@ RSpec.describe Admin::ExportDomainBlocksController do
get :export, params: { format: :csv }
expect(response).to have_http_status(200)
expect(response.body).to eq(File.read(File.join(file_fixture_path, 'domain_blocks.csv')))
expect(response.body).to eq(domain_blocks_csv_file)
end
private
def domain_blocks_csv_file
File.read(File.join(file_fixture_path, 'domain_blocks.csv'))
end
end