|
|
|
|
@ -29,7 +29,9 @@ RSpec.describe Form::Sales::Pages::AboutDepositWithoutDiscount, type: :model do
|
|
|
|
|
|
|
|
|
|
it "has correct depends_on" do |
|
|
|
|
expect(page.depends_on).to eq( |
|
|
|
|
[{ "is_type_discount?" => false, "mortgageused" => 1 }], |
|
|
|
|
[{ "is_type_discount?" => false, "ownershipsch" => 1 }, |
|
|
|
|
{ "ownershipsch" => 2 }, |
|
|
|
|
{ "ownershipsch" => 3, "mortgageused" => 1 }], |
|
|
|
|
) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|