From 8e90ed4e745c22629c48854a8598d675213e79a5 Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 19 Mar 2024 15:25:48 +0000 Subject: [PATCH] More tests --- spec/factories/sales_log.rb | 2 +- .../form/sales/questions/person_working_situation_spec.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/factories/sales_log.rb b/spec/factories/sales_log.rb index 29f32346f..78916e0e4 100644 --- a/spec/factories/sales_log.rb +++ b/spec/factories/sales_log.rb @@ -76,7 +76,7 @@ FactoryBot.define do buy2livein { "1" } ecstat1 { "1" } ecstat2 { "1" } - hholdcount { "6" } + hholdcount { "4" } wheel { 1 } details_known_3 { 1 } age3_known { 0 } diff --git a/spec/models/form/sales/questions/person_working_situation_spec.rb b/spec/models/form/sales/questions/person_working_situation_spec.rb index 41b88223e..97f438460 100644 --- a/spec/models/form/sales/questions/person_working_situation_spec.rb +++ b/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" => [{ "saledate" => { "operator" => "<", "operand" => Time.zone.local(2024, 4, 1) } }, { "age2_known" => 1 }, + { "age2_known" => nil }, { "age2" => { "operator" => "<", "operand" => 16 } }] }, }) end