Rails.logger.info("Cleared location and scheme for logs with startdate and location #{location.id}. Log IDs: #{editable_logs.map(&:id).join(', ')}")
Rails.logger.info("Cleared location and scheme for logs with startdate and location #{location.id}. Log IDs: #{editable_logs_with_startdate.map(&:id).join(', ')}")
Rails.logger.info("Cleared location and scheme for logs without startdate and location #{location.id}. Log IDs: #{logs_without_start_date.map(&:id).join(', ')}")
Rails.logger.info("Cleared location and scheme for logs without startdate and location #{location.id}. Log IDs: #{logs_without_start_date.map(&:id).join(', ')}")
Rails.logger.info("Cleared location and scheme for non editable logs with location #{location.id}. Log IDs: #{remaining_logs_to_export.map(&:id).join(', ')}")
end
end
else
else
Rails.logger.info("Cannot update location #{original_attributes['location_code']} with scheme_code: #{value}. Scheme with id #{value} is not in the database")
Rails.logger.info("Cannot update location #{original_attributes['location_code']} with scheme_code: #{value}. Scheme with id #{value} is not in the database")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with scheme: S#{different_scheme.id}")
expect(Rails.logger).toreceive(:info).with("Cleared location and scheme for logs with startdate and location #{locations[0].id}. Log IDs: #{lettings_log.id}")
expect(Rails.logger).toreceive(:info).with("Cleared location and scheme for logs with startdate and location #{locations[0].id}. Log IDs: #{lettings_log.id}")
expect(Rails.logger).toreceive(:info).with("Cleared location and scheme for logs without startdate and location #{locations[0].id}. Log IDs: ")
expect(Rails.logger).toreceive(:info).with("Cleared location and scheme for logs without startdate and location #{locations[0].id}. Log IDs: ")
expect(Rails.logger).toreceive(:info).with("Cleared location and scheme for non editable logs with location #{locations[0].id}. Log IDs: ")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with postcode: B11BB")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with postcode: B11BB")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with name: Updated name")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with name: Updated name")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with location_code: E09000033")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with location_code: E09000033")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with type_of_unit: Bungalow")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with type_of_unit: Bungalow")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with units: 10")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with units: 10")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with mobility_type: Wheelchair-user standard")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with mobility_type: Wheelchair-user standard")
expect(Rails.logger).toreceive(:info).with("Updating location #{locations[0].id} with scheme: S#{different_scheme.id}")
expect(Rails.logger).toreceive(:info).with("Cannot update location #{locations[0].id} with status as it it not a permitted field")
expect(Rails.logger).toreceive(:info).with("Cannot update location #{locations[0].id} with status as it it not a permitted field")
expect(Rails.logger).toreceive(:info).with("Cannot update location #{locations[0].id} with active_dates as it it not a permitted field")
expect(Rails.logger).toreceive(:info).with("Cannot update location #{locations[0].id} with active_dates as it it not a permitted field")