Browse Source

Add more specs (#1243)

pull/1246/head
Jack 2 years ago committed by GitHub
parent
commit
8e084d0c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      spec/models/form/sales/pages/buyer1_income_value_check_spec.rb
  2. 4
      spec/models/form/sales/pages/deposit_value_check_spec.rb
  3. 4
      spec/models/form/sales/pages/handover_date_check_spec.rb
  4. 4
      spec/models/form/sales/pages/household_wheelchair_check_spec.rb
  5. 4
      spec/models/form/sales/pages/mortgage_value_check_spec.rb
  6. 4
      spec/models/form/sales/pages/retirement_value_check_spec.rb
  7. 4
      spec/models/form/sales/pages/savings_value_check_spec.rb

4
spec/models/form/sales/pages/buyer1_income_value_check_spec.rb

@ -30,4 +30,8 @@ RSpec.describe Form::Sales::Pages::Buyer1IncomeValueCheck, type: :model do
}, },
]) ])
end end
it "is interruption screen page" do
expect(page.interruption_screen?).to eq(true)
end
end end

4
spec/models/form/sales/pages/deposit_value_check_spec.rb

@ -30,4 +30,8 @@ RSpec.describe Form::Sales::Pages::DepositValueCheck, type: :model do
}, },
]) ])
end end
it "is interruption screen page" do
expect(page.interruption_screen?).to eq(true)
end
end end

4
spec/models/form/sales/pages/handover_date_check_spec.rb

@ -30,4 +30,8 @@ RSpec.describe Form::Sales::Pages::HandoverDateCheck, type: :model do
}, },
]) ])
end end
it "is interruption screen page" do
expect(page.interruption_screen?).to eq(true)
end
end end

4
spec/models/form/sales/pages/household_wheelchair_check_spec.rb

@ -30,4 +30,8 @@ RSpec.describe Form::Sales::Pages::HouseholdWheelchairCheck, type: :model do
}, },
]) ])
end end
it "is interruption screen page" do
expect(page.interruption_screen?).to eq(true)
end
end end

4
spec/models/form/sales/pages/mortgage_value_check_spec.rb

@ -23,6 +23,10 @@ RSpec.describe Form::Sales::Pages::MortgageValueCheck, type: :model do
expect(page.header).to be_nil expect(page.header).to be_nil
end end
it "is interruption screen page" do
expect(page.interruption_screen?).to eq(true)
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([
{ {

4
spec/models/form/sales/pages/retirement_value_check_spec.rb

@ -600,4 +600,8 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
end end
end end
end end
it "is interruption screen page" do
expect(page.interruption_screen?).to eq(true)
end
end end

4
spec/models/form/sales/pages/savings_value_check_spec.rb

@ -30,4 +30,8 @@ RSpec.describe Form::Sales::Pages::SavingsValueCheck, type: :model do
}, },
]) ])
end end
it "is interruption screen page" do
expect(page.interruption_screen?).to eq(true)
end
end end

Loading…
Cancel
Save