diff --git a/app/services/bulk_upload/lettings/year2022/row_parser.rb b/app/services/bulk_upload/lettings/year2022/row_parser.rb index 7bae0e9ff..fc105f0cc 100644 --- a/app/services/bulk_upload/lettings/year2022/row_parser.rb +++ b/app/services/bulk_upload/lettings/year2022/row_parser.rb @@ -548,7 +548,7 @@ private def validate_location_exists if scheme && field_5.present? && location.nil? - errors.add(:field_5, "Location could be found with provided scheme code", category: :setup) + errors.add(:field_5, "Location could not be found with the provided scheme code", category: :setup) end end diff --git a/app/services/bulk_upload/lettings/year2023/row_parser.rb b/app/services/bulk_upload/lettings/year2023/row_parser.rb index a7a33eb13..0f81ff543 100644 --- a/app/services/bulk_upload/lettings/year2023/row_parser.rb +++ b/app/services/bulk_upload/lettings/year2023/row_parser.rb @@ -745,7 +745,7 @@ private def validate_location_exists if scheme && field_17.present? && location.nil? - errors.add(:field_17, "Location could be found with provided scheme code", category: :setup) + errors.add(:field_17, "Location could not be found with the provided scheme code", category: :setup) end end diff --git a/spec/services/bulk_upload/lettings/year2022/row_parser_spec.rb b/spec/services/bulk_upload/lettings/year2022/row_parser_spec.rb index 4a35bcf86..1a1a0caf9 100644 --- a/spec/services/bulk_upload/lettings/year2022/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/year2022/row_parser_spec.rb @@ -556,7 +556,7 @@ RSpec.describe BulkUpload::Lettings::Year2022::RowParser do end it "returns as setup error" do - expect(parser.errors.where(:field_5, category: :setup).map(&:message)).to eql(["Location could be found with provided scheme code"]) + expect(parser.errors.where(:field_5, category: :setup).map(&:message)).to eql(["Location could not be found with the provided scheme code"]) end end end