Browse Source

Update joint divider

pull/3023/head
Kat 1 month ago
parent
commit
cbcd4f371a
  1. 2
      app/models/form/lettings/questions/joint.rb
  2. 2
      spec/models/form/lettings/questions/joint_spec.rb

2
app/models/form/lettings/questions/joint.rb

@ -11,7 +11,7 @@ class Form::Lettings::Questions::Joint < ::Form::Question
ANSWER_OPTIONS = {
"1" => { "value" => "Yes" },
"2" => { "value" => "No" },
"divider" => { "value" => "true" },
"divider" => { "value" => true },
"3" => { "value" => "Don’t know" },
}.freeze

2
spec/models/form/lettings/questions/joint_spec.rb

@ -31,7 +31,7 @@ RSpec.describe Form::Lettings::Questions::Joint, type: :model do
expect(question.answer_options).to eq({
"1" => { "value" => "Yes" },
"2" => { "value" => "No" },
"divider" => { "value" => "true" },
"divider" => { "value" => true },
"3" => { "value" => "Don’t know" },
})
end

Loading…
Cancel
Save