Browse Source

update values

pull/904/head
Dushan Despotovic 3 years ago
parent
commit
fa529168a6
  1. 6
      app/models/form/sales/questions/ownership_scheme.rb
  2. 6
      spec/models/form/sales/questions/ownership_scheme_spec.rb

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

@ -10,8 +10,8 @@ class Form::Sales::Questions::OwnershipScheme < ::Form::Question
end
ANSWER_OPTIONS = {
"1" => { "value" => "Shared ownership" },
"2" => { "value" => "Discounted ownership" },
"3" => { "value" => "Outright or other" },
"1" => { "value" => "Yes - a shared ownership scheme" },
"2" => { "value" => "Yes - a discounted ownership scheme" },
"3" => { "value" => "No - this is an outright or other sale" },
}.freeze
end

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

@ -33,9 +33,9 @@ RSpec.describe Form::Sales::Questions::OwnershipScheme, type: :model do
it "has the correct answer_options" do
expect(question.answer_options).to eq({
"1" => { "value" => "Shared ownership" },
"2" => { "value" => "Discounted ownership" },
"3" => { "value" => "Outright or other" },
"1" => { "value" => "Yes - a shared ownership scheme" },
"2" => { "value" => "Yes - a discounted ownership scheme" },
"3" => { "value" => "No - this is an outright or other sale" },
})
end
end

Loading…
Cancel
Save