@ -6,17 +6,26 @@ class Form::Lettings::Questions::Sheltered < ::Form::Question
@header="Is this letting in sheltered accommodation?"
@header="Is this letting in sheltered accommodation?"
@type="radio"
@type="radio"
@check_answers_card_number=0
@check_answers_card_number=0
@hint_text=""
@hint_text="Sheltered housing and special retirement housing are for tenants with low-level care and support needs. This typically provides some limited support to enable independent living, such as alarm-based assistance or a scheme manager.</br></br>Extra care housing is for tenants with medium to high care and support needs, often with 24 hour access to support staff provided by an agency registered with the Care Quality Commission."
@ -26,9 +34,10 @@ RSpec.describe Form::Lettings::Questions::Sheltered, type: :model do
end
end
it"has the correct hint_text"do
it"has the correct hint_text"do
expect(question.hint_text).toeq""
expect(question.hint_text).toeq"Sheltered housing and special retirement housing are for tenants with low-level care and support needs. This typically provides some limited support to enable independent living, such as alarm-based assistance or a scheme manager.</br></br>Extra care housing is for tenants with medium to high care and support needs, often with 24 hour access to support staff provided by an agency registered with the Care Quality Commission."
end
end
context"with 2023/24 form"do
it"has the correct answer_options"do
it"has the correct answer_options"do
expect(question.answer_options).toeq({
expect(question.answer_options).toeq({
"2"=>{"value"=>"Yes – extra care housing"},
"2"=>{"value"=>"Yes – extra care housing"},
@ -39,6 +48,25 @@ RSpec.describe Form::Lettings::Questions::Sheltered, type: :model do