From 219808c9aadac52420c40ac737de543dd5f21641 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 6 Jul 2023 16:29:14 +0100 Subject: [PATCH] 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 e356f6540..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 not 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 d32acd3f3..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 not 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 cb8cba743..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 not 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