Browse Source

feat: household characteristics section and typo fix

pull/1381/head
natdeanlewissoftwire 3 years ago
parent
commit
12fbbca718
  1. 1
      app/models/form/sales/questions/buyer1_age_known.rb
  2. 3
      app/models/form/sales/questions/buyer1_ethnic_background_arab.rb
  3. 3
      app/models/form/sales/questions/buyer1_ethnic_background_asian.rb
  4. 3
      app/models/form/sales/questions/buyer1_ethnic_background_black.rb
  5. 3
      app/models/form/sales/questions/buyer1_ethnic_background_mixed.rb
  6. 3
      app/models/form/sales/questions/buyer1_ethnic_background_white.rb
  7. 1
      app/models/form/sales/questions/buyer1_ethnic_group.rb
  8. 1
      app/models/form/sales/questions/buyer1_live_in_property.rb
  9. 1
      app/models/form/sales/questions/buyer1_working_situation.rb
  10. 1
      app/models/form/sales/questions/buyer2_age_known.rb
  11. 3
      app/models/form/sales/questions/buyer2_ethnic_background_arab.rb
  12. 3
      app/models/form/sales/questions/buyer2_ethnic_background_asian.rb
  13. 3
      app/models/form/sales/questions/buyer2_ethnic_background_black.rb
  14. 3
      app/models/form/sales/questions/buyer2_ethnic_background_mixed.rb
  15. 3
      app/models/form/sales/questions/buyer2_ethnic_background_white.rb
  16. 1
      app/models/form/sales/questions/buyer2_ethnic_group.rb
  17. 1
      app/models/form/sales/questions/buyer2_live_in_property.rb
  18. 1
      app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb
  19. 1
      app/models/form/sales/questions/buyer2_working_situation.rb
  20. 1
      app/models/form/sales/questions/buyer_interview.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/number_of_others_in_property.rb
  25. 1
      app/models/form/sales/questions/person_age_known.rb
  26. 1
      app/models/form/sales/questions/person_gender_identity.rb
  27. 1
      app/models/form/sales/questions/person_relationship_to_buyer_1.rb
  28. 1
      app/models/form/sales/questions/person_working_situation.rb
  29. 1
      app/models/form/sales/questions/privacy_notice.rb
  30. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_arab_spec.rb
  31. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_asian_spec.rb
  32. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_black_spec.rb
  33. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_mixed_spec.rb
  34. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_white_spec.rb
  35. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_arab_spec.rb
  36. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_asian_spec.rb
  37. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_black_spec.rb
  38. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_mixed_spec.rb
  39. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_white_spec.rb

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

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

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

@ -3,11 +3,12 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundArab < ::Form::Question
super super
@id = "ethnic" @id = "ethnic"
@check_answer_label = "Buyer 1’s ethnic background" @check_answer_label = "Buyer 1’s ethnic background"
@header = "Which of the following best describes the buyer 1’s Arab background?" @header = "Which of the following best describes buyer 1’s Arab background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@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." @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 @check_answers_card_number = 1
@question_number = 23
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -3,11 +3,12 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundAsian < ::Form::Question
super super
@id = "ethnic" @id = "ethnic"
@check_answer_label = "Buyer 1’s ethnic background" @check_answer_label = "Buyer 1’s ethnic background"
@header = "Which of the following best describes the buyer 1’s Asian or Asian British background?" @header = "Which of the following best describes buyer 1’s Asian or Asian British background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@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." @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 @check_answers_card_number = 1
@question_number = 23
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -3,11 +3,12 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundBlack < ::Form::Question
super super
@id = "ethnic" @id = "ethnic"
@check_answer_label = "Buyer 1’s ethnic background" @check_answer_label = "Buyer 1’s ethnic background"
@header = "Which of the following best describes the buyer 1’s Black, African, Caribbean or Black British background?" @header = "Which of the following best describes buyer 1’s Black, African, Caribbean or Black British background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@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." @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 @check_answers_card_number = 1
@question_number = 23
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -3,11 +3,12 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundMixed < ::Form::Question
super super
@id = "ethnic" @id = "ethnic"
@check_answer_label = "Buyer 1’s ethnic background" @check_answer_label = "Buyer 1’s ethnic background"
@header = "Which of the following best describes the buyer 1’s Mixed or Multiple ethnic groups background?" @header = "Which of the following best describes buyer 1’s Mixed or Multiple ethnic groups background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@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." @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 @check_answers_card_number = 1
@question_number = 23
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -3,11 +3,12 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundWhite < ::Form::Question
super super
@id = "ethnic" @id = "ethnic"
@check_answer_label = "Buyer 1’s ethnic background" @check_answer_label = "Buyer 1’s ethnic background"
@header = "Which of the following best describes the buyer 1’s White background?" @header = "Which of the following best describes buyer 1’s White background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@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." @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 @check_answers_card_number = 1
@question_number = 23
end end
ANSWER_OPTIONS = { 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", "value" => "Prefers not to say",
}] }]
@check_answers_card_number = 1 @check_answers_card_number = 1
@question_number = 22
end end
ANSWER_OPTIONS = { 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 @answer_options = ANSWER_OPTIONS
@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." @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 @check_answers_card_number = 1
@question_number = 26
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -14,6 +14,7 @@ class Form::Sales::Questions::Buyer1WorkingSituation < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 25
end end
ANSWER_OPTIONS = { 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 @check_answers_card_number = 2
@question_number = 28
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

3
app/models/form/sales/questions/buyer2_ethnic_background_arab.rb

@ -3,10 +3,11 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundArab < ::Form::Question
super super
@id = "ethnicbuy2" @id = "ethnicbuy2"
@check_answer_label = "Buyer 2’s ethnic background" @check_answer_label = "Buyer 2’s ethnic background"
@header = "Which of the following best describes the buyer 2’s Arab background?" @header = "Which of the following best describes buyer 2’s Arab background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2
@question_number = 31
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

3
app/models/form/sales/questions/buyer2_ethnic_background_asian.rb

@ -3,10 +3,11 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundAsian < ::Form::Question
super super
@id = "ethnicbuy2" @id = "ethnicbuy2"
@check_answer_label = "Buyer 2’s ethnic background" @check_answer_label = "Buyer 2’s ethnic background"
@header = "Which of the following best describes the buyer 2’s Asian or Asian British background?" @header = "Which of the following best describes buyer 2’s Asian or Asian British background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2
@question_number = 31
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

3
app/models/form/sales/questions/buyer2_ethnic_background_black.rb

@ -3,10 +3,11 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundBlack < ::Form::Question
super super
@id = "ethnicbuy2" @id = "ethnicbuy2"
@check_answer_label = "Buyer 2’s ethnic background" @check_answer_label = "Buyer 2’s ethnic background"
@header = "Which of the following best describes the buyer 2’s Black, African, Caribbean or Black British background?" @header = "Which of the following best describes buyer 2’s Black, African, Caribbean or Black British background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2
@question_number = 31
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

3
app/models/form/sales/questions/buyer2_ethnic_background_mixed.rb

@ -3,10 +3,11 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundMixed < ::Form::Question
super super
@id = "ethnicbuy2" @id = "ethnicbuy2"
@check_answer_label = "Buyer 2’s ethnic background" @check_answer_label = "Buyer 2’s ethnic background"
@header = "Which of the following best describes the buyer 2’s Mixed or Multiple ethnic groups background?" @header = "Which of the following best describes buyer 2’s Mixed or Multiple ethnic groups background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2
@question_number = 31
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

3
app/models/form/sales/questions/buyer2_ethnic_background_white.rb

@ -3,10 +3,11 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundWhite < ::Form::Question
super super
@id = "ethnicbuy2" @id = "ethnicbuy2"
@check_answer_label = "Buyer 2’s ethnic background" @check_answer_label = "Buyer 2’s ethnic background"
@header = "Which of the following best describes the buyer 2’s White background?" @header = "Which of the following best describes buyer 2’s White background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2
@question_number = 31
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -13,6 +13,7 @@ class Form::Sales::Questions::Buyer2EthnicGroup < ::Form::Question
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@check_answers_card_number = 2 @check_answers_card_number = 2
@question_number = 30
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

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

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

@ -13,6 +13,7 @@ class Form::Sales::Questions::Buyer2RelationshipToBuyer1 < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 27
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -13,6 +13,7 @@ class Form::Sales::Questions::Buyer2WorkingSituation < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 33
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -7,6 +7,7 @@ class Form::Sales::Questions::BuyerInterview < ::Form::Question
@type = "radio" @type = "radio"
@hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person" @hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = 18
end end
ANSWER_OPTIONS = { 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." @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."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 1 @check_answers_card_number = 1
@question_number = 21
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -13,6 +13,7 @@ class Form::Sales::Questions::GenderIdentity2 < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 29
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -24,6 +24,7 @@ class Form::Sales::Questions::Nationality1 < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 24
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -9,6 +9,7 @@ class Form::Sales::Questions::NumberOfOthersInProperty < ::Form::Question
@width = 2 @width = 2
@min = 0 @min = 0
@max = joint_purchase ? 4 : 5 @max = joint_purchase ? 4 : 5
@question_number = 35
end end
private private

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

@ -19,6 +19,7 @@ class Form::Sales::Questions::PersonAgeKnown < ::Form::Question
], ],
} }
@check_answers_card_number = person_index @check_answers_card_number = person_index
@question_number = 29 + person_index * 4
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -12,6 +12,7 @@ class Form::Sales::Questions::PersonGenderIdentity < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 30 + person_index * 4
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -12,6 +12,7 @@ class Form::Sales::Questions::PersonRelationshipToBuyer1 < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 28 + person_index * 4
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -12,6 +12,7 @@ class Form::Sales::Questions::PersonWorkingSituation < ::Form::Question
}, },
"value" => "Prefers not to say", "value" => "Prefers not to say",
}] }]
@question_number = 31 + person_index * 4
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -7,6 +7,7 @@ class Form::Sales::Questions::PrivacyNotice < ::Form::Question
@type = "checkbox" @type = "checkbox"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@guidance_partial = "privacy_notice_buyer" @guidance_partial = "privacy_notice_buyer"
@question_number = 19
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundArab, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 1’s Arab background?") expect(question.header).to eq("Which of the following best describes buyer 1’s Arab background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

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

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundAsian, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 1’s Asian or Asian British background?") expect(question.header).to eq("Which of the following best describes buyer 1’s Asian or Asian British background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

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

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundBlack, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 1’s Black, African, Caribbean or Black British background?") expect(question.header).to eq("Which of the following best describes buyer 1’s Black, African, Caribbean or Black British background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

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

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundMixed, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 1’s Mixed or Multiple ethnic groups background?") expect(question.header).to eq("Which of the following best describes buyer 1’s Mixed or Multiple ethnic groups background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

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

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundWhite, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 1’s White background?") expect(question.header).to eq("Which of the following best describes buyer 1’s White background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_background_arab_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundArab, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 2’s Arab background?") expect(question.header).to eq("Which of the following best describes buyer 2’s Arab background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_background_asian_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundAsian, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 2’s Asian or Asian British background?") expect(question.header).to eq("Which of the following best describes buyer 2’s Asian or Asian British background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_background_black_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundBlack, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 2’s Black, African, Caribbean or Black British background?") expect(question.header).to eq("Which of the following best describes buyer 2’s Black, African, Caribbean or Black British background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_background_mixed_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundMixed, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 2’s Mixed or Multiple ethnic groups background?") expect(question.header).to eq("Which of the following best describes buyer 2’s Mixed or Multiple ethnic groups background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_background_white_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundWhite, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 2’s White background?") expect(question.header).to eq("Which of the following best describes buyer 2’s White background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

Loading…
Cancel
Save