diff --git a/app/models/form/sales/pages/joint_purchase.rb b/app/models/form/sales/pages/joint_purchase.rb index fa431a0f4..d863531ea 100644 --- a/app/models/form/sales/pages/joint_purchase.rb +++ b/app/models/form/sales/pages/joint_purchase.rb @@ -5,15 +5,11 @@ class Form::Sales::Pages::JointPurchase < ::Form::Page @header = "" @description = "" @subsection = subsection - @depends_on = [{ - "ownershipsch" => 1, - }, - { - "ownershipsch" => 2, - }, - { - "companybuy" => 2, - }] + @depends_on = [ + { "ownershipsch" => 1 }, + { "ownershipsch" => 2 }, + { "companybuy" => 2 }, + ] end def questions diff --git a/spec/models/form/sales/pages/joint_purchase_spec.rb b/spec/models/form/sales/pages/joint_purchase_spec.rb index 8f5d6917b..9140b19de 100644 --- a/spec/models/form/sales/pages/joint_purchase_spec.rb +++ b/spec/models/form/sales/pages/joint_purchase_spec.rb @@ -28,14 +28,10 @@ RSpec.describe Form::Sales::Pages::JointPurchase, type: :model do end it "has correct depends_on" do - expect(page.depends_on).to eq([{ - "ownershipsch" => 1, - }, - { - "ownershipsch" => 2, - }, - { - "companybuy" => 2, - }]) + expect(page.depends_on).to eq([ + { "ownershipsch" => 1 }, + { "ownershipsch" => 2 }, + { "companybuy" => 2 }, + ]) end end