Browse Source

update values (#904)

pull/908/head
Dushan 2 years ago committed by GitHub
parent
commit
554b660f1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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 end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {
"1" => { "value" => "Shared ownership" }, "1" => { "value" => "Yes - a shared ownership scheme" },
"2" => { "value" => "Discounted ownership" }, "2" => { "value" => "Yes - a discounted ownership scheme" },
"3" => { "value" => "Outright or other" }, "3" => { "value" => "No - this is an outright or other sale" },
}.freeze }.freeze
end 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 it "has the correct answer_options" do
expect(question.answer_options).to eq({ expect(question.answer_options).to eq({
"1" => { "value" => "Shared ownership" }, "1" => { "value" => "Yes - a shared ownership scheme" },
"2" => { "value" => "Discounted ownership" }, "2" => { "value" => "Yes - a discounted ownership scheme" },
"3" => { "value" => "Outright or other" }, "3" => { "value" => "No - this is an outright or other sale" },
}) })
end end
end end

Loading…
Cancel
Save