Browse Source

feat: update copy

pull/2185/head
natdeanlewissoftwire 2 years ago
parent
commit
304579a0e8
  1. 2
      app/models/form/lettings/questions/reasonpref.rb
  2. 2
      spec/models/form/lettings/questions/reasonpref_spec.rb

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

@ -6,7 +6,7 @@ class Form::Lettings::Questions::Reasonpref < ::Form::Question
@header = "Was the household given ‘reasonable preference’ by the local authority?" @header = "Was the household given ‘reasonable preference’ by the local authority?"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = form.start_year_after_2024? ? "Households may be given ‘reasonable preference’ for social housing under one or more specific category by the local authority. This is also known as ‘priority need’." : "Households may be given ‘reasonable preference’ for social housing, also known as ‘priority need’, by the local authority." @hint_text = form.start_year_after_2024? ? "Households may be given ‘reasonable preference’ for social housing under one or more specific categories by the local authority. This is also known as ‘priority need’." : "Households may be given ‘reasonable preference’ for social housing, also known as ‘priority need’, by the local authority."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = 82 @question_number = 82
end end

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

@ -71,7 +71,7 @@ RSpec.describe Form::Lettings::Questions::Reasonpref, type: :model do
end end
it "has the correct hint" do it "has the correct hint" do
expect(question.hint_text).to eq("Households may be given ‘reasonable preference’ for social housing under one or more specific category by the local authority. This is also known as ‘priority need’.") expect(question.hint_text).to eq("Households may be given ‘reasonable preference’ for social housing under one or more specific categories by the local authority. This is also known as ‘priority need’.")
end end
end end
end end

Loading…
Cancel
Save