|
|
|
|
@ -38,4 +38,11 @@ RSpec.describe Form::Sales::Questions::Person1Age, type: :model do
|
|
|
|
|
it "has the correct width" do |
|
|
|
|
expect(question.width).to eq(3) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct inferred check answers value" do |
|
|
|
|
expect(question.inferred_check_answers_value).to eq({ |
|
|
|
|
"condition" => {"age3_known" => 1}, |
|
|
|
|
"value" => "Not known" |
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|