diff --git a/spec/services/exports/organisation_export_service_spec.rb b/spec/services/exports/organisation_export_service_spec.rb index 69be45c54..623cb359e 100644 --- a/spec/services/exports/organisation_export_service_spec.rb +++ b/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