Browse Source

[CLDC-1484] Add prefer not to say to Age 1 question (#910)

pull/913/head
Jack S 2 years ago committed by GitHub
parent
commit
cc93afa486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/models/form/sales/questions/buyer1_age_known.rb
  2. 1
      spec/models/form/sales/questions/buyer1_age_known_spec.rb

1
app/models/form/sales/questions/buyer1_age_known.rb

@ -16,5 +16,6 @@ class Form::Sales::Questions::Buyer1AgeKnown < ::Form::Question
ANSWER_OPTIONS = { ANSWER_OPTIONS = {
"0" => { "value" => "Yes" }, "0" => { "value" => "Yes" },
"1" => { "value" => "No" }, "1" => { "value" => "No" },
"2" => { "value" => "Buyer prefers not to say" },
}.freeze }.freeze
end end

1
spec/models/form/sales/questions/buyer1_age_known_spec.rb

@ -35,6 +35,7 @@ RSpec.describe Form::Sales::Questions::Buyer1AgeKnown, type: :model do
expect(question.answer_options).to eq({ expect(question.answer_options).to eq({
"0" => { "value" => "Yes" }, "0" => { "value" => "Yes" },
"1" => { "value" => "No" }, "1" => { "value" => "No" },
"2" => { "value" => "Buyer prefers not to say" },
}) })
end end

Loading…
Cancel
Save