CLDC-1806 update options for shared ownership type (#1323)
* update options for shared ownership type for 23_24
various minor copy changes
reordering
one new option
update tests to reflect this change
* alter way of setting question options to reduce future tech debt
* add in hyphen to match with the paper form
@ -6,16 +6,31 @@ class Form::Sales::Questions::SharedOwnershipType < ::Form::Question
@header="What is the type of shared ownership sale?"
@hint_text="A shared ownership sale is when the purchaser buys up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion"
@type="radio"
@answer_options=ANSWER_OPTIONS
@answer_options=answer_options
end
ANSWER_OPTIONS={
defanswer_options
ifform.start_date.year>=2023
{
"2"=>{"value"=>"Shared Ownership (old model lease)"},
"30"=>{"value"=>"Shared Ownership (new model lease)"},
@ -35,15 +38,34 @@ RSpec.describe Form::Sales::Questions::SharedOwnershipType, type: :model do
expect(question.hint_text).toeq("A shared ownership sale is when the purchaser buys up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion")