|
|
|
|
@ -26,6 +26,15 @@ RSpec.describe Form::Sales::Pages::Buyer2Nationality, type: :model do
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has correct depends_on" do |
|
|
|
|
expect(page.depends_on).to eq [{ "joint_purchase?" => true }] |
|
|
|
|
expect(page.depends_on).to eq [ |
|
|
|
|
{ |
|
|
|
|
"joint_purchase?" => true, |
|
|
|
|
"buyer_has_seen_privacy_notice?" => true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"joint_purchase?" => true, |
|
|
|
|
"buyer_not_interviewed?" => true, |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|