@ -2,7 +2,7 @@ class Form::Lettings::Pages::TenancyLength < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "tenancy_length"
@depends_on = [{ "tenancy_type_fixed_term_or_other?" => true }]
@depends_on = [{ "tenancy_type_fixed_term?" => true }]
end
def questions
@ -205,8 +205,8 @@ class LettingsLog < Log
startertenancy == 1
def tenancy_type_fixed_term_or_other?
[4, 6, 3].include? tenancy
def tenancy_type_fixed_term?
[4, 6].include? tenancy
def is_general_needs?
@ -26,6 +26,6 @@ RSpec.describe Form::Lettings::Pages::TenancyLength, type: :model do
it "has the correct depends_on" do
expect(page.depends_on).to eq [{ "tenancy_type_fixed_term_or_other?" => true }]
expect(page.depends_on).to eq [{ "tenancy_type_fixed_term?" => true }]