Browse Source

Add card numbers to household characteristics question

pull/1068/head
Kat 4 years ago
parent
commit
be7558134a
  1. 1
      app/models/form/sales/questions/age1.rb
  2. 1
      app/models/form/sales/questions/age2.rb
  3. 1
      app/models/form/sales/questions/buyer1_age_known.rb
  4. 1
      app/models/form/sales/questions/buyer1_ethnic_background_arab.rb
  5. 1
      app/models/form/sales/questions/buyer1_ethnic_background_asian.rb
  6. 1
      app/models/form/sales/questions/buyer1_ethnic_background_black.rb
  7. 1
      app/models/form/sales/questions/buyer1_ethnic_background_mixed.rb
  8. 1
      app/models/form/sales/questions/buyer1_ethnic_background_white.rb
  9. 1
      app/models/form/sales/questions/buyer1_ethnic_group.rb
  10. 1
      app/models/form/sales/questions/buyer1_income.rb
  11. 1
      app/models/form/sales/questions/buyer1_income_known.rb
  12. 1
      app/models/form/sales/questions/buyer1_live_in_property.rb
  13. 1
      app/models/form/sales/questions/buyer1_mortgage.rb
  14. 1
      app/models/form/sales/questions/buyer1_working_situation.rb
  15. 1
      app/models/form/sales/questions/buyer2_age_known.rb
  16. 1
      app/models/form/sales/questions/buyer2_income.rb
  17. 1
      app/models/form/sales/questions/buyer2_income_known.rb
  18. 1
      app/models/form/sales/questions/buyer2_live_in_property.rb
  19. 1
      app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb
  20. 1
      app/models/form/sales/questions/buyer2_working_situation.rb
  21. 1
      app/models/form/sales/questions/gender_identity1.rb
  22. 1
      app/models/form/sales/questions/gender_identity2.rb
  23. 1
      app/models/form/sales/questions/nationality1.rb
  24. 1
      app/models/form/sales/questions/other_nationality1.rb
  25. 1
      app/models/form/sales/questions/person1_age.rb
  26. 1
      app/models/form/sales/questions/person1_age_known.rb
  27. 1
      app/models/form/sales/questions/person2_age.rb
  28. 1
      app/models/form/sales/questions/person2_age_known.rb
  29. 1
      app/models/form/sales/questions/person2_known.rb
  30. 1
      app/models/form/sales/questions/person3_age.rb
  31. 1
      app/models/form/sales/questions/person3_age_known.rb
  32. 1
      app/models/form/sales/questions/person3_known.rb
  33. 1
      app/models/form/sales/questions/person4_age.rb
  34. 1
      app/models/form/sales/questions/person4_age_known.rb
  35. 1
      app/models/form/sales/questions/person4_known.rb
  36. 4
      spec/models/form/sales/questions/age1_spec.rb
  37. 4
      spec/models/form/sales/questions/age2_spec.rb
  38. 4
      spec/models/form/sales/questions/buyer1_age_known_spec.rb
  39. 4
      spec/models/form/sales/questions/buyer1_ethnic_background_arab_spec.rb
  40. 4
      spec/models/form/sales/questions/buyer1_ethnic_background_asian_spec.rb
  41. 4
      spec/models/form/sales/questions/buyer1_ethnic_background_black_spec.rb
  42. 4
      spec/models/form/sales/questions/buyer1_ethnic_background_mixed_spec.rb
  43. 4
      spec/models/form/sales/questions/buyer1_ethnic_background_white_spec.rb
  44. 4
      spec/models/form/sales/questions/buyer1_ethnic_group_spec.rb
  45. 4
      spec/models/form/sales/questions/buyer1_income_known_spec.rb
  46. 4
      spec/models/form/sales/questions/buyer1_income_spec.rb
  47. 4
      spec/models/form/sales/questions/buyer1_live_in_property_spec.rb
  48. 4
      spec/models/form/sales/questions/buyer1_mortgage_spec.rb
  49. 4
      spec/models/form/sales/questions/buyer1_working_situation_spec.rb
  50. 4
      spec/models/form/sales/questions/buyer2_age_known_spec.rb
  51. 4
      spec/models/form/sales/questions/buyer2_income_known_spec.rb
  52. 4
      spec/models/form/sales/questions/buyer2_income_spec.rb
  53. 4
      spec/models/form/sales/questions/buyer2_live_in_property_spec.rb
  54. 4
      spec/models/form/sales/questions/buyer2_relationship_to_buyer1_spec.rb
  55. 4
      spec/models/form/sales/questions/buyer2_working_situation_spec.rb
  56. 4
      spec/models/form/sales/questions/gender_identity1_spec.rb
  57. 4
      spec/models/form/sales/questions/gender_identity2_spec.rb
  58. 4
      spec/models/form/sales/questions/nationality1_spec.rb
  59. 4
      spec/models/form/sales/questions/other_nationality1_spec.rb
  60. 4
      spec/models/form/sales/questions/person1_age_known_spec.rb
  61. 4
      spec/models/form/sales/questions/person1_age_spec.rb
  62. 4
      spec/models/form/sales/questions/person2_age_known_spec.rb
  63. 4
      spec/models/form/sales/questions/person2_age_spec.rb
  64. 4
      spec/models/form/sales/questions/person2_known_spec.rb
  65. 4
      spec/models/form/sales/questions/person3_age_known_spec.rb
  66. 4
      spec/models/form/sales/questions/person3_age_spec.rb
  67. 4
      spec/models/form/sales/questions/person3_known_spec.rb
  68. 4
      spec/models/form/sales/questions/person4_age_known_spec.rb
  69. 4
      spec/models/form/sales/questions/person4_age_spec.rb
  70. 4
      spec/models/form/sales/questions/person4_known_spec.rb

1
app/models/form/sales/questions/age1.rb

@ -13,5 +13,6 @@ class Form::Sales::Questions::Age1 < ::Form::Question
},
"value" => "Not known"
}
@check_answers_card_number = 1
end
end

1
app/models/form/sales/questions/age2.rb

@ -11,5 +11,6 @@ class Form::Sales::Questions::Age2 < ::Form::Question
"condition" => { "age2_known" => 1 },
"value" => "Not known"
}
@check_answers_card_number = 2
end
end

1
app/models/form/sales/questions/buyer1_age_known.rb

@ -21,6 +21,7 @@ class Form::Sales::Questions::Buyer1AgeKnown < ::Form::Question
}
],
}
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_ethnic_background_arab.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundArab < ::Form::Question
@answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_ethnic_background_asian.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundAsian < ::Form::Question
@answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_ethnic_background_black.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundBlack < ::Form::Question
@answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_ethnic_background_mixed.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundMixed < ::Form::Question
@answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_ethnic_background_white.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundWhite < ::Form::Question
@answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_ethnic_group.rb

@ -14,6 +14,7 @@ class Form::Sales::Questions::Buyer1EthnicGroup < ::Form::Question
},
"value" => "Prefers not to say",
}
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_income.rb

@ -10,5 +10,6 @@ class Form::Sales::Questions::Buyer1Income < ::Form::Question
@step = 1
@width = 5
@prefix = "£"
@check_answers_card_number = 1
end
end

1
app/models/form/sales/questions/buyer1_income_known.rb

@ -12,6 +12,7 @@ class Form::Sales::Questions::Buyer1IncomeKnown < ::Form::Question
@conditional_for = {
"income1" => [0],
}
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_live_in_property.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::Buyer1LiveInProperty < ::Form::Question
@answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_mortgage.rb

@ -7,6 +7,7 @@ class Form::Sales::Questions::Buyer1Mortgage < ::Form::Question
@type = "radio"
@answer_options = ANSWER_OPTIONS
@page = page
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_working_situation.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::Buyer1WorkingSituation < ::Form::Question
@answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it's a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer2_age_known.rb

@ -20,6 +20,7 @@ class Form::Sales::Questions::Buyer2AgeKnown < ::Form::Question
}
],
}
@check_answers_card_number = 2
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer2_income.rb

@ -10,5 +10,6 @@ class Form::Sales::Questions::Buyer2Income < ::Form::Question
@step = 1
@width = 5
@prefix = "£"
@check_answers_card_number = 2
end
end

1
app/models/form/sales/questions/buyer2_income_known.rb

@ -12,6 +12,7 @@ class Form::Sales::Questions::Buyer2IncomeKnown < ::Form::Question
@conditional_for = {
"income2" => [0],
}
@check_answers_card_number = 2
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer2_live_in_property.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::Buyer2LiveInProperty < ::Form::Question
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@page = page
@check_answers_card_number = 2
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::Buyer2RelationshipToBuyer1 < ::Form::Question
@hint_text = ""
@page = page
@answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer2_working_situation.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::Buyer2WorkingSituation < ::Form::Question
@hint_text = ""
@page = page
@answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/gender_identity1.rb

@ -8,6 +8,7 @@ class Form::Sales::Questions::GenderIdentity1 < ::Form::Question
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@page = page
@answer_options = ANSWER_OPTIONS
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/gender_identity2.rb

@ -7,6 +7,7 @@ class Form::Sales::Questions::GenderIdentity2 < ::Form::Question
@type = "radio"
@page = page
@answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/nationality1.rb

@ -18,6 +18,7 @@ class Form::Sales::Questions::Nationality1 < ::Form::Question
},
],
}
@check_answers_card_number = 1
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/other_nationality1.rb

@ -6,5 +6,6 @@ class Form::Sales::Questions::OtherNationality1 < ::Form::Question
@header = "Nationality"
@type = "text"
@page = page
@check_answers_card_number = 1
end
end

1
app/models/form/sales/questions/person1_age.rb

@ -11,5 +11,6 @@ class Form::Sales::Questions::Person1Age < ::Form::Question
"condition" => { "age3_known" => 1 },
"value" => "Not known"
}
@check_answers_card_number = 3
end
end

1
app/models/form/sales/questions/person1_age_known.rb

@ -21,6 +21,7 @@ class Form::Sales::Questions::Person1AgeKnown < ::Form::Question
}
],
}
@check_answers_card_number = 3
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/person2_age.rb

@ -11,5 +11,6 @@ class Form::Sales::Questions::Person2Age < ::Form::Question
"condition" => { "age4_known" => 1 },
"value" => "Not known"
}
@check_answers_card_number = 4
end
end

1
app/models/form/sales/questions/person2_age_known.rb

@ -21,6 +21,7 @@ class Form::Sales::Questions::Person2AgeKnown < ::Form::Question
}
],
}
@check_answers_card_number = 4
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/person2_known.rb

@ -15,6 +15,7 @@ class Form::Sales::Questions::Person2Known < ::Form::Question
},
],
}
@check_answers_card_number = 4
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/person3_age.rb

@ -11,5 +11,6 @@ class Form::Sales::Questions::Person3Age < ::Form::Question
"condition" => { "age5_known" => 1 },
"value" => "Not known"
}
@check_answers_card_number = 5
end
end

1
app/models/form/sales/questions/person3_age_known.rb

@ -21,6 +21,7 @@ class Form::Sales::Questions::Person3AgeKnown < ::Form::Question
}
],
}
@check_answers_card_number = 5
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/person3_known.rb

@ -15,6 +15,7 @@ class Form::Sales::Questions::Person3Known < ::Form::Question
},
],
}
@check_answers_card_number = 5
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/person4_age.rb

@ -11,5 +11,6 @@ class Form::Sales::Questions::Person4Age < ::Form::Question
"condition" => { "age6_known" => 1 },
"value" => "Not known"
}
@check_answers_card_number = 6
end
end

1
app/models/form/sales/questions/person4_age_known.rb

@ -21,6 +21,7 @@ class Form::Sales::Questions::Person4AgeKnown < ::Form::Question
}
],
}
@check_answers_card_number = 6
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/person4_known.rb

@ -15,6 +15,7 @@ class Form::Sales::Questions::Person4Known < ::Form::Question
},
],
}
@check_answers_card_number = 6
end
ANSWER_OPTIONS = {

4
spec/models/form/sales/questions/age1_spec.rb

@ -45,4 +45,8 @@ RSpec.describe Form::Sales::Questions::Age1, type: :model do
"value" => "Not known"
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/age2_spec.rb

@ -47,4 +47,8 @@ RSpec.describe Form::Sales::Questions::Age2, type: :model do
"value" => "Not known"
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(2)
end
end

4
spec/models/form/sales/questions/buyer1_age_known_spec.rb

@ -59,4 +59,8 @@ RSpec.describe Form::Sales::Questions::Buyer1AgeKnown, type: :model do
}],
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer1_ethnic_background_arab_spec.rb

@ -41,4 +41,8 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundArab, type: :model
"19" => { "value" => "Arab" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer1_ethnic_background_asian_spec.rb

@ -44,4 +44,8 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundAsian, type: :model
"9" => { "value" => "Pakistani" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer1_ethnic_background_black_spec.rb

@ -42,4 +42,8 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundBlack, type: :model
"14" => { "value" => "Any other Black, African or Caribbean background" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer1_ethnic_background_mixed_spec.rb

@ -43,4 +43,8 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundMixed, type: :model
"7" => { "value" => "Any other Mixed or Multiple ethnic background" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer1_ethnic_background_white_spec.rb

@ -43,4 +43,8 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundWhite, type: :model
"3" => { "value" => "Any other White background" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

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

@ -46,4 +46,8 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicGroup, type: :model do
"divider" => { "value" => true },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer1_income_known_spec.rb

@ -52,4 +52,8 @@ RSpec.describe Form::Sales::Questions::Buyer1IncomeKnown, type: :model do
expect(question.bottom_guidance?).to eq(true)
expect(question.top_guidance?).to eq(false)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer1_income_spec.rb

@ -50,4 +50,8 @@ RSpec.describe Form::Sales::Questions::Buyer1Income, type: :model do
it "has correct min" do
expect(question.min).to eq(0)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer1_live_in_property_spec.rb

@ -45,4 +45,8 @@ RSpec.describe Form::Sales::Questions::Buyer1LiveInProperty, type: :model do
it "has the correct hint" do
expect(question.hint_text).to eq("Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest.")
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer1_mortgage_spec.rb

@ -37,4 +37,8 @@ RSpec.describe Form::Sales::Questions::Buyer1Mortgage, type: :model do
"2" => { "value" => "No" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer1_working_situation_spec.rb

@ -45,4 +45,8 @@ RSpec.describe Form::Sales::Questions::Buyer1WorkingSituation, type: :model do
"7" => { "value" => "Full-time student" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/buyer2_age_known_spec.rb

@ -52,4 +52,8 @@ RSpec.describe Form::Sales::Questions::Buyer2AgeKnown, type: :model do
{"age2_known" => 1}]
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(2)
end
end

4
spec/models/form/sales/questions/buyer2_income_known_spec.rb

@ -52,4 +52,8 @@ RSpec.describe Form::Sales::Questions::Buyer2IncomeKnown, type: :model do
expect(question.bottom_guidance?).to eq(true)
expect(question.top_guidance?).to eq(false)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(2)
end
end

4
spec/models/form/sales/questions/buyer2_income_spec.rb

@ -50,4 +50,8 @@ RSpec.describe Form::Sales::Questions::Buyer2Income, type: :model do
it "has correct min" do
expect(question.min).to eq(0)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(2)
end
end

4
spec/models/form/sales/questions/buyer2_live_in_property_spec.rb

@ -41,4 +41,8 @@ RSpec.describe Form::Sales::Questions::Buyer2LiveInProperty, type: :model do
"2" => { "value" => "No" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(2)
end
end

4
spec/models/form/sales/questions/buyer2_relationship_to_buyer1_spec.rb

@ -43,4 +43,8 @@ RSpec.describe Form::Sales::Questions::Buyer2RelationshipToBuyer1, type: :model
"R" => { "value" => "Buyer prefers not to say" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(2)
end
end

4
spec/models/form/sales/questions/buyer2_working_situation_spec.rb

@ -50,4 +50,8 @@ RSpec.describe Form::Sales::Questions::Buyer2WorkingSituation, type: :model do
"9" => { "value" => "Child under 16" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(2)
end
end

4
spec/models/form/sales/questions/gender_identity1_spec.rb

@ -43,4 +43,8 @@ RSpec.describe Form::Sales::Questions::GenderIdentity1, type: :model do
"R" => { "value" => "Prefers not to say " },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/gender_identity2_spec.rb

@ -39,4 +39,8 @@ RSpec.describe Form::Sales::Questions::GenderIdentity2, type: :model do
"R" => { "value" => "Buyer prefers not to say" },
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(2)
end
end

4
spec/models/form/sales/questions/nationality1_spec.rb

@ -60,4 +60,8 @@ RSpec.describe Form::Sales::Questions::Nationality1, type: :model do
],
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/other_nationality1_spec.rb

@ -34,4 +34,8 @@ RSpec.describe Form::Sales::Questions::OtherNationality1, type: :model do
it "has the correct hint" do
expect(question.hint_text).to be_nil
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(1)
end
end

4
spec/models/form/sales/questions/person1_age_known_spec.rb

@ -62,4 +62,8 @@ RSpec.describe Form::Sales::Questions::Person1AgeKnown, type: :model do
},
)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(3)
end
end

4
spec/models/form/sales/questions/person1_age_spec.rb

@ -45,4 +45,8 @@ RSpec.describe Form::Sales::Questions::Person1Age, type: :model do
"value" => "Not known"
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(3)
end
end

4
spec/models/form/sales/questions/person2_age_known_spec.rb

@ -55,4 +55,8 @@ RSpec.describe Form::Sales::Questions::Person2AgeKnown, type: :model do
},
)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(4)
end
end

4
spec/models/form/sales/questions/person2_age_spec.rb

@ -45,4 +45,8 @@ RSpec.describe Form::Sales::Questions::Person2Age, type: :model do
"value" => "Not known"
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(4)
end
end

4
spec/models/form/sales/questions/person2_known_spec.rb

@ -57,4 +57,8 @@ RSpec.describe Form::Sales::Questions::Person2Known, type: :model do
},
)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(4)
end
end

4
spec/models/form/sales/questions/person3_age_known_spec.rb

@ -55,4 +55,8 @@ RSpec.describe Form::Sales::Questions::Person3AgeKnown, type: :model do
},
)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(5)
end
end

4
spec/models/form/sales/questions/person3_age_spec.rb

@ -45,4 +45,8 @@ RSpec.describe Form::Sales::Questions::Person3Age, type: :model do
"value" => "Not known"
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(5)
end
end

4
spec/models/form/sales/questions/person3_known_spec.rb

@ -57,4 +57,8 @@ RSpec.describe Form::Sales::Questions::Person3Known, type: :model do
},
)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(5)
end
end

4
spec/models/form/sales/questions/person4_age_known_spec.rb

@ -55,4 +55,8 @@ RSpec.describe Form::Sales::Questions::Person4AgeKnown, type: :model do
},
)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(6)
end
end

4
spec/models/form/sales/questions/person4_age_spec.rb

@ -45,4 +45,8 @@ RSpec.describe Form::Sales::Questions::Person4Age, type: :model do
"value" => "Not known"
})
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(6)
end
end

4
spec/models/form/sales/questions/person4_known_spec.rb

@ -57,4 +57,8 @@ RSpec.describe Form::Sales::Questions::Person4Known, type: :model do
},
)
end
it "has the correct check_answers_card_number" do
expect(question.check_answers_card_number).to eq(6)
end
end

Loading…
Cancel
Save