diff --git a/spec/models/form/lettings/pages/tenancy_length_periodic_spec.rb b/spec/models/form/lettings/pages/tenancy_length_periodic_spec.rb index f3860d1cb..19134110f 100644 --- a/spec/models/form/lettings/pages/tenancy_length_periodic_spec.rb +++ b/spec/models/form/lettings/pages/tenancy_length_periodic_spec.rb @@ -14,7 +14,7 @@ RSpec.describe Form::Lettings::Pages::TenancyLengthPeriodic, type: :model do end it "has the correct id" do - expect(page.id).to eq "tenancy_length" + expect(page.id).to eq "tenancy_length_periodic" end it "has the correct header" do @@ -26,6 +26,6 @@ RSpec.describe Form::Lettings::Pages::TenancyLengthPeriodic, type: :model do end 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