@ -2,9 +2,9 @@ class Form::Sales::Pages::HandoverDate < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "handover_date"
@depends_on = [{
"ownershipsch" => 1,
}]
@depends_on = [
{ "ownershipsch" => 1, "resale" => 2 },
]
end
def questions
@ -28,8 +28,6 @@ RSpec.describe Form::Sales::Pages::HandoverDate, type: :model do
it "has the correct depends_on" do
expect(page.depends_on).to eq([{
}])
expect(page.depends_on).to eq([{ "ownershipsch" => 1, "resale" => 2 }])