|
|
|
@ -38,7 +38,13 @@ RSpec.describe Form::Sales::Pages::PersonKnown, type: :model do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
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, |
|
|
|
|
|
|
|
"hholdcount" => { |
|
|
|
|
|
|
|
"operand" => 1, |
|
|
|
|
|
|
|
"operator" => ">=", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}]) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
@ -59,7 +65,21 @@ RSpec.describe Form::Sales::Pages::PersonKnown, type: :model do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "has correct depends_on" do |
|
|
|
it "has correct depends_on" do |
|
|
|
expect(page.depends_on).to be nil |
|
|
|
expect(page.depends_on).to eq([ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"hholdcount" => { |
|
|
|
|
|
|
|
"operand" => 2, |
|
|
|
|
|
|
|
"operator" => ">=", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"jointpur" => 2, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"hholdcount" => |
|
|
|
|
|
|
|
{ "operand" => 1, |
|
|
|
|
|
|
|
"operator" => ">=" }, |
|
|
|
|
|
|
|
"jointpur" => 1, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
@ -80,7 +100,22 @@ RSpec.describe Form::Sales::Pages::PersonKnown, type: :model do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "has correct depends_on" do |
|
|
|
it "has correct depends_on" do |
|
|
|
expect(page.depends_on).to be nil |
|
|
|
expect(page.depends_on).to eq([ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"hholdcount" => { |
|
|
|
|
|
|
|
"operand" => 3, |
|
|
|
|
|
|
|
"operator" => ">=", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"jointpur" => 2, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"hholdcount" => { |
|
|
|
|
|
|
|
"operand" => 2, |
|
|
|
|
|
|
|
"operator" => ">=", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"jointpur" => 1, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
@ -101,7 +136,20 @@ RSpec.describe Form::Sales::Pages::PersonKnown, type: :model do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "has correct depends_on" do |
|
|
|
it "has correct depends_on" do |
|
|
|
expect(page.depends_on).to be nil |
|
|
|
expect(page.depends_on).to eq([ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"hholdcount" => |
|
|
|
|
|
|
|
{ "operand" => 4, "operator" => ">=" }, |
|
|
|
|
|
|
|
"jointpur" => 2, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"hholdcount" => { |
|
|
|
|
|
|
|
"operand" => 3, |
|
|
|
|
|
|
|
"operator" => ">=", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"jointpur" => 1, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|