Browse Source

Also remove inferred check answers value for buyer 2 ethnic group

pull/2265/head
Robert Sullivan 2 years ago
parent
commit
233420ef8e
  1. 6
      app/models/form/sales/questions/buyer2_ethnic_group.rb
  2. 9
      spec/models/form/sales/questions/buyer2_ethnic_group_spec.rb

6
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

9
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

Loading…
Cancel
Save