Browse Source

Update validation message: wheelchair

pull/1584/head
Kat 3 years ago
parent
commit
8dc6d7f76a
  1. 2
      app/models/form/sales/questions/household_wheelchair_check.rb
  2. 2
      config/locales/en.yml
  3. 2
      spec/models/form/sales/questions/household_wheelchair_check_spec.rb

2
app/models/form/sales/questions/household_wheelchair_check.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::HouseholdWheelchairCheck < ::Form::Question
super
@id = "wheel_value_check"
@check_answer_label = "Does anyone in the household use a wheelchair?"
@header = "Are you sure? You said previously that somebody in household uses a wheelchair"
@header = "You told us that someone in the household uses a wheelchair."
@type = "interruption_screen"
@answer_options = {
"0" => { "value" => "Yes" },

2
config/locales/en.yml

@ -587,7 +587,7 @@ en:
title_text: "You told us that the grant amount is %{grant}"
hint_text: "Loans, grants and subsidies are usually between £9,000 and £16,000."
wheelchair:
title_text: "Are you sure? You said previously that somebody in household uses a wheelchair"
title_text: "You told us that someone in the household uses a wheelchair."
mortgage:
title_text: "Are you sure that the mortgage is more than 5 times the income used for the mortgage application?"

2
spec/models/form/sales/questions/household_wheelchair_check_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::HouseholdWheelchairCheck, type: :model do
end
it "has the correct header" do
expect(question.header).to eq("Are you sure? You said previously that somebody in household uses a wheelchair")
expect(question.header).to eq("You told us that someone in the household uses a wheelchair.")
end
it "has the correct check_answer_label" do

Loading…
Cancel
Save