Browse Source

feat: update tests

pull/2214/head
natdeanlewissoftwire 2 years ago
parent
commit
c1eeae3a52
  1. 4
      spec/models/form/lettings/pages/tenancy_length_periodic_spec.rb

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

@ -14,7 +14,7 @@ RSpec.describe Form::Lettings::Pages::TenancyLengthPeriodic, type: :model do
end end
it "has the correct id" do it "has the correct id" do
expect(page.id).to eq "tenancy_length" expect(page.id).to eq "tenancy_length_periodic"
end end
it "has the correct header" do it "has the correct header" do
@ -26,6 +26,6 @@ RSpec.describe Form::Lettings::Pages::TenancyLengthPeriodic, type: :model do
end end
it "has the correct depends_on" do it "has the correct depends_on" do
expect(page.depends_on).to eq [{ "tenancy_type_fixed_term?" => true, "needstype" => 2 }] expect(page.depends_on).to eq [{ "tenancy_type_periodic?" => true }]
end end
end end

Loading…
Cancel
Save