From 253a9322af88cf8112700fcb310ab991cf45857e Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 17 Jan 2023 12:34:51 +0000 Subject: [PATCH] Add a missing test --- .../form/sales/questions/buyer1_ethnic_group_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/models/form/sales/questions/buyer1_ethnic_group_spec.rb b/spec/models/form/sales/questions/buyer1_ethnic_group_spec.rb index 07e58b368..4e619bcf8 100644 --- a/spec/models/form/sales/questions/buyer1_ethnic_group_spec.rb +++ b/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