From 524172f260c215f7c8ad154218dc9f73dfce926e Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire <94526761+natdeanlewissoftwire@users.noreply.github.com> Date: Tue, 17 Jan 2023 11:48:04 +0000 Subject: [PATCH] feat: add hint text and update test (#1171) --- app/models/form/lettings/questions/renewal.rb | 1 + spec/models/form/lettings/questions/renewal_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/form/lettings/questions/renewal.rb b/app/models/form/lettings/questions/renewal.rb index 1282984cc..edf9c1e7b 100644 --- a/app/models/form/lettings/questions/renewal.rb +++ b/app/models/form/lettings/questions/renewal.rb @@ -6,6 +6,7 @@ class Form::Lettings::Questions::Renewal < ::Form::Question @header = "Is this letting a renewal?" @type = "radio" @answer_options = ANSWER_OPTIONS + @hint_text = "A renewal is a letting to the same tenant in the same property" end ANSWER_OPTIONS = { diff --git a/spec/models/form/lettings/questions/renewal_spec.rb b/spec/models/form/lettings/questions/renewal_spec.rb index 820ff7c98..edb869d02 100644 --- a/spec/models/form/lettings/questions/renewal_spec.rb +++ b/spec/models/form/lettings/questions/renewal_spec.rb @@ -28,7 +28,7 @@ RSpec.describe Form::Lettings::Questions::Renewal, type: :model do end it "has the correct hint_text" do - expect(question.hint_text).to be_nil + expect(question.hint_text).to eq("A renewal is a letting to the same tenant in the same property") end it "has the correct answer_options" do