Browse Source

Fix tests

CLDC-1864-question-numbering
Kat 2 years ago
parent
commit
0afea34267
  1. 2
      app/models/form/sales/questions/property_wheelchair_accessible.rb
  2. 2
      spec/models/form/sales/pages/privacy_notice_spec.rb
  3. 4
      spec/models/form/sales/questions/exchange_date_spec.rb
  4. 2
      spec/models/form/sales/questions/gender_identity2_spec.rb
  5. 2
      spec/models/form/sales/questions/person_gender_identity_spec.rb

2
app/models/form/sales/questions/property_wheelchair_accessible.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PropertyWheelchairAccessible < ::Form::Question
super
@id = "wchair"
@check_answer_label = "Property build or adapted to wheelchair-user standards"
@header = "Q17 -Is the property build or adapted to wheelchair-user standards?"
@header = "Q17 - Is the property build or adapted to wheelchair-user standards?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
end

2
spec/models/form/sales/pages/privacy_notice_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::PrivacyNotice, type: :model do
end
it "has the correct header" do
expect(page.header).to eq("Department for Levelling Up, Housing and Communities privacy notice")
expect(page.header).to eq("Q19 - Department for Levelling Up, Housing and Communities privacy notice")
end
it "has the correct description" do

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

@ -16,11 +16,11 @@ RSpec.describe Form::Sales::Questions::ExchangeDate, type: :model do
end
it "has the correct header" do
expect(question.header).to eq("What is the exchange of contracts date?")
expect(question.header).to eq("Q81 - What is the exchange of contracts date?")
end
it "has the correct check_answer_label" do
expect(question.check_answer_label).to eq("Q81 - Exchange of contracts date")
expect(question.check_answer_label).to eq("Exchange of contracts date")
end
it "has the correct type" do

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

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

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

@ -38,7 +38,7 @@ RSpec.describe Form::Sales::Questions::PersonGenderIdentity, type: :model do
end
it "has the correct header" do
expect(question.header).to eq("Q29 - Which of these best describes Person 2’s gender identity?")
expect(question.header).to eq("Which of these best describes Person 2’s gender identity?")
end
it "has the correct check_answer_label" do

Loading…
Cancel
Save