From e759c3522a911c8d71bad7a15f86cdeb37ac8b93 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire <94526761+natdeanlewissoftwire@users.noreply.github.com> Date: Fri, 7 Jul 2023 14:25:38 +0100 Subject: [PATCH] Correct typo in location not found bulk upload error message (#1759) * feat: update copy * feat: update copy --- app/services/bulk_upload/lettings/year2022/row_parser.rb | 2 +- app/services/bulk_upload/lettings/year2023/row_parser.rb | 2 +- spec/services/bulk_upload/lettings/year2022/row_parser_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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