Browse Source

Add a missing test

pull/1077/head
Kat 3 years ago
parent
commit
253a9322af
  1. 9
      spec/models/form/sales/questions/buyer1_ethnic_group_spec.rb

9
spec/models/form/sales/questions/buyer1_ethnic_group_spec.rb

@ -50,4 +50,13 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicGroup, type: :model do
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
it "has the correct inferred_check_answers_value" do
expect(question.inferred_check_answers_value).to eq([{
"condition" => {
"ethnic_group" => 17,
},
"value" => "Prefers not to say",
}])
end
end

Loading…
Cancel
Save