From 233420ef8e82c96caf375320b864c415f3a6770a Mon Sep 17 00:00:00 2001 From: Robert Sullivan Date: Tue, 27 Feb 2024 10:51:20 +0000 Subject: [PATCH] Also remove inferred check answers value for buyer 2 ethnic group --- app/models/form/sales/questions/buyer2_ethnic_group.rb | 6 ------ .../form/sales/questions/buyer2_ethnic_group_spec.rb | 9 --------- 2 files changed, 15 deletions(-) diff --git a/app/models/form/sales/questions/buyer2_ethnic_group.rb b/app/models/form/sales/questions/buyer2_ethnic_group.rb index b4493a44b..a383415e1 100644 --- a/app/models/form/sales/questions/buyer2_ethnic_group.rb +++ b/app/models/form/sales/questions/buyer2_ethnic_group.rb @@ -6,12 +6,6 @@ class Form::Sales::Questions::Buyer2EthnicGroup < ::Form::Question @header = "What is buyer 2’s ethnic group?" @type = "radio" @answer_options = ANSWER_OPTIONS - @inferred_check_answers_value = [{ - "condition" => { - "ethnic_group2" => 17, - }, - "value" => "Prefers not to say", - }] @check_answers_card_number = 2 @question_number = 30 end diff --git a/spec/models/form/sales/questions/buyer2_ethnic_group_spec.rb b/spec/models/form/sales/questions/buyer2_ethnic_group_spec.rb index 591f3f77a..82a7601bd 100644 --- a/spec/models/form/sales/questions/buyer2_ethnic_group_spec.rb +++ b/spec/models/form/sales/questions/buyer2_ethnic_group_spec.rb @@ -50,13 +50,4 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicGroup, type: :model do it "has the correct check_answers_card_number" do expect(question.check_answers_card_number).to eq(2) end - - it "has the correct inferred_check_answers_value" do - expect(question.inferred_check_answers_value).to eq([{ - "condition" => { - "ethnic_group2" => 17, - }, - "value" => "Prefers not to say", - }]) - end end