Browse Source

[CLDC-2648] Update renewal hint text (#1847)

pull/1858/head
Jack 1 year ago committed by GitHub
parent
commit
1a6c81d9df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/form/lettings/questions/renewal.rb
  2. 2
      spec/models/form/lettings/questions/renewal_spec.rb

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

@ -6,7 +6,7 @@ class Form::Lettings::Questions::Renewal < ::Form::Question
@header = "Is this letting a renewal?" @header = "Is this letting a renewal?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "A renewal is a letting to the same tenant in the same property" @hint_text = "A renewal is a letting to the same tenant in the same property. If the property was previously being used as temporary accommodation, then answer 'no'"
@question_number = 4 @question_number = 4
end end

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

@ -28,7 +28,7 @@ RSpec.describe Form::Lettings::Questions::Renewal, type: :model do
end end
it "has the correct hint_text" do it "has the correct hint_text" do
expect(question.hint_text).to eq("A renewal is a letting to the same tenant in the same property") expect(question.hint_text).to eq("A renewal is a letting to the same tenant in the same property. If the property was previously being used as temporary accommodation, then answer 'no'")
end end
it "has the correct answer_options" do it "has the correct answer_options" do

Loading…
Cancel
Save