Browse Source

refactor: improve spacing

pull/938/head
natdeanlewissoftwire 3 years ago
parent
commit
21cf4d8b47
  1. 14
      app/models/form/sales/pages/joint_purchase.rb
  2. 14
      spec/models/form/sales/pages/joint_purchase_spec.rb

14
app/models/form/sales/pages/joint_purchase.rb

@ -5,15 +5,11 @@ class Form::Sales::Pages::JointPurchase < ::Form::Page
@header = "" @header = ""
@description = "" @description = ""
@subsection = subsection @subsection = subsection
@depends_on = [{ @depends_on = [
"ownershipsch" => 1, { "ownershipsch" => 1 },
}, { "ownershipsch" => 2 },
{ { "companybuy" => 2 },
"ownershipsch" => 2, ]
},
{
"companybuy" => 2,
}]
end end
def questions def questions

14
spec/models/form/sales/pages/joint_purchase_spec.rb

@ -28,14 +28,10 @@ RSpec.describe Form::Sales::Pages::JointPurchase, type: :model do
end end
it "has correct depends_on" do it "has correct depends_on" do
expect(page.depends_on).to eq([{ expect(page.depends_on).to eq([
"ownershipsch" => 1, { "ownershipsch" => 1 },
}, { "ownershipsch" => 2 },
{ { "companybuy" => 2 },
"ownershipsch" => 2, ])
},
{
"companybuy" => 2,
}])
end end
end end

Loading…
Cancel
Save