Browse Source

remove buyer_1_age from setup

pull/902/head
Kat 3 years ago
parent
commit
af135755fd
  1. 1
      app/models/form/sales/subsections/setup.rb
  2. 2
      spec/models/form/sales/subsections/setup_spec.rb

1
app/models/form/sales/subsections/setup.rb

@ -18,7 +18,6 @@ class Form::Sales::Subsections::Setup < ::Form::Subsection
Form::Sales::Pages::OutrightOwnershipType.new(nil, nil, self),
Form::Sales::Pages::JointPurchase.new(nil, nil, self),
Form::Sales::Pages::NumberJointBuyers.new(nil, nil, self),
Form::Sales::Pages::Age1.new(nil, nil, self),
]
end
end

2
spec/models/form/sales/subsections/setup_spec.rb

@ -13,7 +13,7 @@ RSpec.describe Form::Sales::Subsections::Setup, type: :model do
it "has correct pages" do
expect(setup.pages.map(&:id)).to eq(
%w[organisation created_by completion_date purchaser_code ownership_scheme shared_ownership_type discounted_ownership_type outright_ownership_type joint_purchase number_joint_buyers buyer_1_age],
%w[organisation created_by completion_date purchaser_code ownership_scheme shared_ownership_type discounted_ownership_type outright_ownership_type joint_purchase number_joint_buyers],
)
end

Loading…
Cancel
Save