@ -3,9 +3,14 @@ class Form::Sales::Pages::PreviousBedrooms < ::Form::Page
super
@id = "previous_bedrooms"
@header = "About the buyers’ previous property"
@depends_on = [{
"soctenant" => 1,
}]
@depends_on = [
{
},
"soctenant" => 0,
]
end
def questions
@ -5,9 +5,14 @@ class Form::Sales::Pages::PreviousPropertyType < ::Form::Page
@header = ""
@description = ""
@subsection = subsection
@ -5,9 +5,14 @@ class Form::Sales::Pages::PreviousTenure < ::Form::Page
@ -28,8 +28,13 @@ RSpec.describe Form::Sales::Pages::PreviousBedrooms, type: :model do
it "has correct depends_on" do
expect(page.depends_on).to eq([{
}])
expect(page.depends_on).to eq([
])
@ -28,8 +28,13 @@ RSpec.describe Form::Sales::Pages::PreviousPropertyType, type: :model do
@ -28,8 +28,13 @@ RSpec.describe Form::Sales::Pages::PreviousTenure, type: :model do