Browse Source

More tests

pull/2256/head
Kat 2 years ago
parent
commit
8e90ed4e74
  1. 2
      spec/factories/sales_log.rb
  2. 1
      spec/models/form/sales/questions/person_working_situation_spec.rb

2
spec/factories/sales_log.rb

@ -76,7 +76,7 @@ FactoryBot.define do
buy2livein { "1" } buy2livein { "1" }
ecstat1 { "1" } ecstat1 { "1" }
ecstat2 { "1" } ecstat2 { "1" }
hholdcount { "6" } hholdcount { "4" }
wheel { 1 } wheel { 1 }
details_known_3 { 1 } details_known_3 { 1 }
age3_known { 0 } age3_known { 0 }

1
spec/models/form/sales/questions/person_working_situation_spec.rb

@ -36,6 +36,7 @@ RSpec.describe Form::Sales::Questions::PersonWorkingSituation, type: :model do
"depends_on" => "depends_on" =>
[{ "saledate" => { "operator" => "<", "operand" => Time.zone.local(2024, 4, 1) } }, [{ "saledate" => { "operator" => "<", "operand" => Time.zone.local(2024, 4, 1) } },
{ "age2_known" => 1 }, { "age2_known" => 1 },
{ "age2_known" => nil },
{ "age2" => { "operator" => "<", "operand" => 16 } }] }, { "age2" => { "operator" => "<", "operand" => 16 } }] },
}) })
end end

Loading…
Cancel
Save