@ -5,6 +5,15 @@ class Form::Sales::Pages::JointPurchase < ::Form::Page
@header = ""
@description = ""
@subsection = subsection
@depends_on = [{
"ownershipsch" => 1,
},
{
"ownershipsch" => 2,
"companybuy" => 2,
}]
end
def questions
@ -26,4 +26,16 @@ RSpec.describe Form::Sales::Pages::JointPurchase, type: :model do
it "has the correct description" do
expect(page.description).to eq("")
it "has correct depends_on" do
expect(page.depends_on).to eq([{
}])