Skip to content

Commit

Permalink
Update sheltered accommodation question
Browse files Browse the repository at this point in the history
  • Loading branch information
kosiakkatrina committed Feb 7, 2025
1 parent 3b65f97 commit 901671b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions app/models/form/lettings/questions/sheltered.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ def initialize(id, hsh, page)

def answer_options
if form.start_year_2025_or_later?
{ "1" => { "value" => "Yes – sheltered housing for tenants with low support needs" },
{
"7" => { "value" => "Yes – for tenants with low support needs" },
"2" => { "value" => "Yes – extra care housing" },
"7" => { "value" => "Yes - other" },
"8" => { "value" => "Yes other" },
"3" => { "value" => "No" },
"divider" => { "value" => true },
"4" => { "value" => "Don’t know" } }
"4" => { "value" => "Don’t know" },
}
else
{ "1" => { "value" => "Yes – specialist retirement housing" },
"2" => { "value" => "Yes – extra care housing" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ en:

sheltered:
page_header: ""
check_answer_label: "Letting in sheltered accommodation"
check_answer_prompt: "Tell us if letting is in sheltered accommodation"
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."
question_text: "Is this letting in sheltered accommodation?"
check_answer_label: "Letting is older people’s housing"
check_answer_prompt: "Tell us if letting is older people’s housing"
hint_text: "This includes retirement living, sheltered housing and extra care housing. There is no national set limit for \"older people\", please answer based on your own policies.</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."
question_text: "Is this property older people’s housing?"
4 changes: 2 additions & 2 deletions spec/models/form/lettings/questions/sheltered_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@

it "has the correct answer_options" do
expect(question.answer_options).to eq({
"1" => { "value" => "Yes – sheltered housing for tenants with low support needs" },
"7" => { "value" => "Yes – for tenants with low support needs" },
"2" => { "value" => "Yes – extra care housing" },
"7" => { "value" => "Yes - other" },
"8" => { "value" => "Yes other" },
"3" => { "value" => "No" },
"divider" => { "value" => true },
"4" => { "value" => "Don’t know" },
Expand Down

0 comments on commit 901671b

Please sign in to comment.