|
|
|
@ -30,7 +30,7 @@ RSpec.describe Form::Sales::Pages::HousingBenefits, type: :model do |
|
|
|
|
|
|
|
|
|
|
|
context "when joint_purchase is false" do |
|
|
|
context "when joint_purchase is false" do |
|
|
|
it "has correct depends_on" do |
|
|
|
it "has correct depends_on" do |
|
|
|
expect(page.depends_on).to eq([{"jointpur" => 2}]) |
|
|
|
expect(page.depends_on).to eq([{ "jointpur" => 2 }]) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
@ -38,7 +38,7 @@ RSpec.describe Form::Sales::Pages::HousingBenefits, type: :model do |
|
|
|
let(:joint_purchase) { true } |
|
|
|
let(:joint_purchase) { true } |
|
|
|
|
|
|
|
|
|
|
|
it "has correct depends_on" do |
|
|
|
it "has correct depends_on" do |
|
|
|
expect(page.depends_on).to eq([{"jointpur" => 1}]) |
|
|
|
expect(page.depends_on).to eq([{ "jointpur" => 1 }]) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|