From 1a658f9b85649bcefa307fb76ec1a2cca0aab8d8 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Fri, 2 Feb 2024 09:04:19 +0000 Subject: [PATCH] feat: update order --- app/models/form/lettings/questions/sheltered.rb | 4 ++-- spec/models/form/lettings/questions/sheltered_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/form/lettings/questions/sheltered.rb b/app/models/form/lettings/questions/sheltered.rb index 665678d78..b8379469c 100644 --- a/app/models/form/lettings/questions/sheltered.rb +++ b/app/models/form/lettings/questions/sheltered.rb @@ -12,8 +12,8 @@ class Form::Lettings::Questions::Sheltered < ::Form::Question def answer_options if form.start_year_after_2024? - { "2" => { "value" => "Yes – extra care housing" }, - "1" => { "value" => "Yes – specialist retirement housing" }, + { "1" => { "value" => "Yes – specialist retirement housing" }, + "2" => { "value" => "Yes – extra care housing" }, "5" => { "value" => "Yes – sheltered housing for adults aged under 55 years" }, "6" => { "value" => "Yes – sheltered housing for adults aged 55 years and over who are not retired" }, "3" => { "value" => "No" }, diff --git a/spec/models/form/lettings/questions/sheltered_spec.rb b/spec/models/form/lettings/questions/sheltered_spec.rb index 5ed5caa30..cf3f59f26 100644 --- a/spec/models/form/lettings/questions/sheltered_spec.rb +++ b/spec/models/form/lettings/questions/sheltered_spec.rb @@ -57,8 +57,8 @@ RSpec.describe Form::Lettings::Questions::Sheltered, type: :model do it "has the correct answer_options" do expect(question.answer_options).to eq({ - "2" => { "value" => "Yes – extra care housing" }, "1" => { "value" => "Yes – specialist retirement housing" }, + "2" => { "value" => "Yes – extra care housing" }, "5" => { "value" => "Yes – sheltered housing for adults aged under 55 years" }, "6" => { "value" => "Yes – sheltered housing for adults aged 55 years and over who are not retired" }, "3" => { "value" => "No" },