From 972b12189ace16cc77a5757eea48723c0d0aaf96 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:50:24 +0000 Subject: [PATCH] Update uprn known test with specific error message already used --- spec/models/form/sales/questions/uprn_known_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/form/sales/questions/uprn_known_spec.rb b/spec/models/form/sales/questions/uprn_known_spec.rb index e551ca430..fb5215676 100644 --- a/spec/models/form/sales/questions/uprn_known_spec.rb +++ b/spec/models/form/sales/questions/uprn_known_spec.rb @@ -37,7 +37,7 @@ RSpec.describe Form::Sales::Questions::UprnKnown, type: :model do end it "has the correct unanswered_error_message" do - expect(question.unanswered_error_message).to eq("You must answer #{format_ending(I18n.t('forms.2023.sales.property_information.uprn.uprn_known.check_answer_label'))}") + expect(question.unanswered_error_message).to eq(I18n.t("validations.sales.property_information.uprn_known.invalid")) end it "has the correct hidden_in_check_answers" do