|
|
|
|
@ -40,10 +40,16 @@ RSpec.describe Form::Sales::Questions::Age1, type: :model do
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct inferred check answers value" do |
|
|
|
|
expect(question.inferred_check_answers_value).to eq([{ |
|
|
|
|
expect(question.inferred_check_answers_value).to eq([ |
|
|
|
|
{ |
|
|
|
|
"condition" => { "age1_known" => 1 }, |
|
|
|
|
"value" => "Not known", |
|
|
|
|
}]) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"condition" => { "age1_known" => 2 }, |
|
|
|
|
"value" => "Prefers not to say", |
|
|
|
|
}, |
|
|
|
|
]) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct check_answers_card_number" do |
|
|
|
|
|