Browse Source

Fix tests

pull/1254/head
Kat 3 years ago
parent
commit
4e2c6286d0
  1. 4
      spec/models/form/lettings/pages/person_age_spec.rb
  2. 4
      spec/models/form/lettings/pages/person_gender_identity_spec.rb
  3. 2
      spec/models/form/lettings/pages/person_known_spec.rb
  4. 4
      spec/models/form/lettings/pages/person_relationship_to_lead_spec.rb
  5. 4
      spec/models/form/lettings/pages/person_working_situation_spec.rb

4
spec/models/form/lettings/pages/person_age_spec.rb

@ -12,11 +12,11 @@ RSpec.describe Form::Lettings::Pages::PersonAge, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be nil
end end
it "has the correct description" do it "has the correct description" do
expect(page.description).to eq("") expect(page.description).to be nil
end end
context "with person 2" do context "with person 2" do

4
spec/models/form/lettings/pages/person_gender_identity_spec.rb

@ -12,11 +12,11 @@ RSpec.describe Form::Lettings::Pages::PersonGenderIdentity, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be nil
end end
it "has the correct description" do it "has the correct description" do
expect(page.description).to eq("") expect(page.description).to be nil
end end
context "with person 2" do context "with person 2" do

2
spec/models/form/lettings/pages/person_known_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Lettings::Pages::PersonKnown, type: :model do
end end
it "has the correct description" do it "has the correct description" do
expect(page.description).to eq("") expect(page.description).to be nil
end end
context "with person 2" do context "with person 2" do

4
spec/models/form/lettings/pages/person_relationship_to_lead_spec.rb

@ -12,11 +12,11 @@ RSpec.describe Form::Lettings::Pages::PersonRelationshipToLead, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be nil
end end
it "has the correct description" do it "has the correct description" do
expect(page.description).to eq("") expect(page.description).to be nil
end end
context "with person 2" do context "with person 2" do

4
spec/models/form/lettings/pages/person_working_situation_spec.rb

@ -12,11 +12,11 @@ RSpec.describe Form::Lettings::Pages::PersonWorkingSituation, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be nil
end end
it "has the correct description" do it "has the correct description" do
expect(page.description).to eq("") expect(page.description).to be nil
end end
context "with person 2" do context "with person 2" do

Loading…
Cancel
Save