Browse Source

feat: update test

pull/1546/head
natdeanlewissoftwire 3 years ago
parent
commit
896af06bb8
  1. 6
      app/models/form/sales/pages/housing_benefits.rb

6
app/models/form/sales/pages/housing_benefits.rb

@ -2,7 +2,11 @@ class Form::Sales::Pages::HousingBenefits < ::Form::Page
def initialize(id, hsh, subsection, joint_purchase:)
super(id, hsh, subsection)
@joint_purchase = joint_purchase
@depends_on = [{ "jointpur" => @joint_purchase ? 1 : 2 }]
@depends_on = [if @joint_purchase
{ "joint_purchase?" => true }
else
{ "not_joint_purchase?" => true }
end]
end
def questions

Loading…
Cancel
Save