Browse Source

add option to renewal question as well after discussion with Rachel

pull/1338/head
Arthur Campbell 3 years ago
parent
commit
aa19738dbe
  1. 1
      app/models/form/lettings/questions/previous_tenure_renewal.rb
  2. 1
      spec/models/form/lettings/questions/previous_tenure_renewal_spec.rb

1
app/models/form/lettings/questions/previous_tenure_renewal.rb

@ -12,6 +12,7 @@ class Form::Lettings::Questions::PreviousTenureRenewal < ::Form::Question
ANSWER_OPTIONS = { ANSWER_OPTIONS = {
"34" => { "value" => "Specialist retirement housing" }, "34" => { "value" => "Specialist retirement housing" },
"36" => { "value" => "Sheltered housing for adults aged under 55 years" },
"35" => { "value" => "Extra care housing" }, "35" => { "value" => "Extra care housing" },
"6" => { "value" => "Other supported housing" }, "6" => { "value" => "Other supported housing" },
}.freeze }.freeze

1
spec/models/form/lettings/questions/previous_tenure_renewal_spec.rb

@ -37,6 +37,7 @@ RSpec.describe Form::Lettings::Questions::PreviousTenureRenewal, type: :model do
expect(question.answer_options).to eq({ expect(question.answer_options).to eq({
"34" => { "value" => "Specialist retirement housing" }, "34" => { "value" => "Specialist retirement housing" },
"35" => { "value" => "Extra care housing" }, "35" => { "value" => "Extra care housing" },
"36" => { "value" => "Sheltered housing for adults aged under 55 years" },
"6" => { "value" => "Other supported housing" }, "6" => { "value" => "Other supported housing" },
}) })
end end

Loading…
Cancel
Save