@ -102,7 +102,7 @@ RSpec.describe Exports::LettingsLogExportService do
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_manifest_filename )
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_manifest_filename )
expect ( entry ) . not_to be_nil
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
end
export_service . export_xml_lettings_logs
export_service . export_xml_lettings_logs
@ -113,7 +113,7 @@ RSpec.describe Exports::LettingsLogExportService do
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
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 )
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_data_filename )
expect ( entry ) . not_to be_nil
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
end
export_service . export_xml_lettings_logs
export_service . export_xml_lettings_logs
@ -143,7 +143,7 @@ RSpec.describe Exports::LettingsLogExportService do
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
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 )
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_data_filename )
expect ( entry ) . not_to be_nil
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
end
export_service . export_xml_lettings_logs
export_service . export_xml_lettings_logs
@ -188,7 +188,7 @@ RSpec.describe Exports::LettingsLogExportService do
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
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 )
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_data_filename )
expect ( entry ) . not_to be_nil
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
end
export_service . export_xml_lettings_logs
export_service . export_xml_lettings_logs
@ -271,7 +271,7 @@ RSpec.describe Exports::LettingsLogExportService do
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_manifest_filename )
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_manifest_filename )
expect ( entry ) . not_to be_nil
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
end
export_service . export_xml_lettings_logs
export_service . export_xml_lettings_logs
@ -390,7 +390,7 @@ RSpec.describe Exports::LettingsLogExportService do
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_manifest_filename )
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_manifest_filename )
expect ( entry ) . not_to be_nil
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
end
expect ( export_service . export_xml_lettings_logs ) . to eq ( { expected_zip_filename . gsub ( " .zip " , " " ) = > start_time } )
expect ( export_service . export_xml_lettings_logs ) . to eq ( { expected_zip_filename . gsub ( " .zip " , " " ) = > start_time } )
@ -410,7 +410,7 @@ RSpec.describe Exports::LettingsLogExportService do
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
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 )
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_data_filename )
expect ( entry ) . not_to be_nil
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
end
export_service . export_xml_lettings_logs
export_service . export_xml_lettings_logs
@ -441,7 +441,7 @@ RSpec.describe Exports::LettingsLogExportService do
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
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 )
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_data_filename )
expect ( entry ) . not_to be_nil
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
end
export_service . export_xml_lettings_logs
export_service . export_xml_lettings_logs
@ -473,7 +473,7 @@ RSpec.describe Exports::LettingsLogExportService do
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
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 )
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_data_filename )
expect ( entry ) . not_to be_nil
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
end
export_service . export_xml_lettings_logs
export_service . export_xml_lettings_logs
@ -504,7 +504,7 @@ RSpec.describe Exports::LettingsLogExportService do
expect ( storage_service ) . to receive ( :write_file ) . with ( expected_zip_filename , any_args ) do | _ , content |
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 )
entry = Zip :: File . open_buffer ( content ) . find_entry ( expected_data_filename )
expect ( entry ) . not_to be_nil
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
end
export_service . export_xml_lettings_logs ( full_update : true )
export_service . export_xml_lettings_logs ( full_update : true )
end
end