From 6604fd56eb415902427debcefb48b300c66bc83a Mon Sep 17 00:00:00 2001 From: Samuel Date: Mon, 19 May 2025 16:47:15 +0100 Subject: [PATCH] Fix final failing tests --- spec/services/exports/organisation_export_service_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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