Browse Source

Update uprn question

pull/2742/head
Kat 1 year ago
parent
commit
8dcc282dbf
  1. 2
      app/models/form/lettings/questions/uprn.rb
  2. 2
      spec/models/form/lettings/questions/uprn_spec.rb

2
app/models/form/lettings/questions/uprn.rb

@ -15,7 +15,7 @@ class Form::Lettings::Questions::Uprn < ::Form::Question
end end
def unanswered_error_message def unanswered_error_message
I18n.t("validations.property.uprn.invalid") I18n.t("validations.lettings.property.uprn.invalid")
end end
def get_extra_check_answer_value(log) def get_extra_check_answer_value(log)

2
spec/models/form/lettings/questions/uprn_spec.rb

@ -28,7 +28,7 @@ RSpec.describe Form::Lettings::Questions::Uprn, type: :model do
end end
it "has the correct unanswered_error_message" do it "has the correct unanswered_error_message" do
expect(question.unanswered_error_message).to eq("UPRN must be 12 digits or less.") expect(question.unanswered_error_message).to eq(I18n.t("validations.lettings.property.uprn.invalid"))
end end
describe "get_extra_check_answer_value" do describe "get_extra_check_answer_value" do

Loading…
Cancel
Save