Browse Source

add new trait to case log factory

pull/25/head
MadeTech Dushan 3 years ago
parent
commit
4e924afbf7
  1. 10
      spec/factories/case_log.rb

10
spec/factories/case_log.rb

@ -11,6 +11,16 @@ FactoryBot.define do
tenant_code { "BZ737" }
postcode { "NW1 7TY" }
end
trait :near_check_answers_household_characteristics do
status { 0 }
tenant_code { "AB123" }
postcode { "LE11 2DW" }
tenant_age { 25 }
tenant_gender { "Male" }
tenant_ethnic_group { "White: English/Scottish/Welsh/Northern Irish/British" }
tenant_nationality { "UK national resident in UK" }
tenant_economic_status { "Part-time - Less than 30 hours" }
end
created_at { Time.zone.now }
updated_at { Time.zone.now }
end

Loading…
Cancel
Save