Browse Source

Update question option text

pull/2904/head
Kat 4 months ago
parent
commit
4f3c1d36e8
  1. 4
      app/models/form/sales/questions/ownership_scheme.rb
  2. 4
      spec/models/form/sales/questions/ownership_scheme_spec.rb

4
app/models/form/sales/questions/ownership_scheme.rb

@ -9,8 +9,8 @@ class Form::Sales::Questions::OwnershipScheme < ::Form::Question
def answer_options def answer_options
if form.start_year_2025_or_later? if form.start_year_2025_or_later?
{ {
"1" => { "value" => "Yes - a shared ownership scheme", "hint" => "When the purchaser buys an initial share of up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion, or a subsequent staircasing transaction" }, "1" => { "value" => "Shared Ownership", "hint" => "When the purchaser buys an initial share of up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion, or a subsequent staircasing transaction" },
"2" => { "value" => "Yes - a discounted ownership scheme" }, "2" => { "value" => "Discounted Ownership" },
}.freeze }.freeze
elsif form.start_year_2024_or_later? elsif form.start_year_2024_or_later?
{ {

4
spec/models/form/sales/questions/ownership_scheme_spec.rb

@ -62,8 +62,8 @@ RSpec.describe Form::Sales::Questions::OwnershipScheme, type: :model do
it "has the correct answer_options" do it "has the correct answer_options" do
expect(question.answer_options).to eq({ expect(question.answer_options).to eq({
"1" => { "value" => "Yes - a shared ownership scheme", "hint" => "When the purchaser buys an initial share of up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion, or a subsequent staircasing transaction" }, "1" => { "value" => "Shared Ownership", "hint" => "When the purchaser buys an initial share of up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion, or a subsequent staircasing transaction" },
"2" => { "value" => "Yes - a discounted ownership scheme" }, "2" => { "value" => "Discounted Ownership" },
}) })
end end
end end

Loading…
Cancel
Save