diff --git a/spec/factories/lettings_log.rb b/spec/factories/lettings_log.rb index 0023bc842..e46d5067e 100644 --- a/spec/factories/lettings_log.rb +++ b/spec/factories/lettings_log.rb @@ -6,6 +6,7 @@ FactoryBot.define do managing_organisation { assigned_to.organisation } created_at { Time.zone.today } updated_at { Time.zone.today } + manual_address_entry_selected { true } before(:create) do |log, _evaluator| if log.period && !log.managing_organisation.organisation_rent_periods.exists?(rent_period: log.period) diff --git a/spec/factories/sales_log.rb b/spec/factories/sales_log.rb index 2a6bda53d..e12af9699 100644 --- a/spec/factories/sales_log.rb +++ b/spec/factories/sales_log.rb @@ -8,6 +8,8 @@ FactoryBot.define do managing_organisation { assigned_to.organisation } created_at { Time.zone.now } updated_at { Time.zone.now } + manual_address_entry_selected { true } + trait :in_progress do purchid { "PC123" } ownershipsch { 2 }