From 5025a760a51ee5d8d5072f431c8382a888e76103 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Tue, 11 Apr 2023 15:02:33 +0100 Subject: [PATCH] fix: drop "known" from "You must answer UPRN known" --- app/services/bulk_upload/lettings/year2023/row_parser.rb | 2 +- spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/bulk_upload/lettings/year2023/row_parser.rb b/app/services/bulk_upload/lettings/year2023/row_parser.rb index 60d0ccbc3..ee7a49480 100644 --- a/app/services/bulk_upload/lettings/year2023/row_parser.rb +++ b/app/services/bulk_upload/lettings/year2023/row_parser.rb @@ -435,7 +435,7 @@ private def validate_uprn_exists_if_address_does_not if field_18.blank? && field_19.blank? && field_21.blank? - errors.add(:field_18, I18n.t("validations.not_answered", question: "UPRN known")) + errors.add(:field_18, I18n.t("validations.not_answered", question: "UPRN")) end end diff --git a/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb b/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb index 0c12db8fb..e24d19ea6 100644 --- a/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb @@ -830,7 +830,7 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do end it "adds an appropriate error" do - expect(parser.errors[:field_18]).to eql(["You must answer UPRN known"]) + expect(parser.errors[:field_18]).to eql(["You must answer UPRN"]) end end