Browse Source

Fix final failing tests

CLDC-3857-Add-new-questions-to-organisation-setup
Samuel 1 day ago
parent
commit
6604fd56eb
  1. 4
      spec/services/exports/organisation_export_service_spec.rb

4
spec/services/exports/organisation_export_service_spec.rb

@ -121,7 +121,7 @@ RSpec.describe Exports::OrganisationExportService do
expect(storage_service).to receive(:write_file).with(expected_zip_filename, any_args) do |_, content|
entry = Zip::File.open_buffer(content).find_entry(expected_data_filename)
expect(entry).not_to be_nil
expect(entry.get_input_stream.read).to eq(expected_content)
expect(entry.get_input_stream.read).to have_same_xml_contents_as(expected_content)
end
export_service.export_xml_organisations
@ -145,7 +145,7 @@ RSpec.describe Exports::OrganisationExportService do
expect(storage_service).to receive(:write_file).with(expected_zip_filename, any_args) do |_, content|
entry = Zip::File.open_buffer(content).find_entry(expected_data_filename)
expect(entry).not_to be_nil
expect(entry.get_input_stream.read).to eq(expected_content)
expect(entry.get_input_stream.read).to have_same_xml_contents_as(expected_content)
end
export_service.export_xml_organisations

Loading…
Cancel
Save