diff --git a/spec/factories/lettings_log.rb b/spec/factories/lettings_log.rb index ad81bca5d..9b620f2b5 100644 --- a/spec/factories/lettings_log.rb +++ b/spec/factories/lettings_log.rb @@ -172,7 +172,7 @@ FactoryBot.define do if log.startdate >= Time.zone.local(2024, 4, 1) log.nationality_all_group = 826 log.uprn = evaluator.uprn || "10033558653" - log.uprn_selection = evaluator.uprn_selection || "10033558653" + log.uprn_selection = evaluator.uprn_selection || evaluator.uprn || "10033558653" end end end diff --git a/spec/factories/sales_log.rb b/spec/factories/sales_log.rb index 4c83fd04d..827cc0be0 100644 --- a/spec/factories/sales_log.rb +++ b/spec/factories/sales_log.rb @@ -173,7 +173,7 @@ FactoryBot.define do log.nationality_all_group = 826 log.nationality_all_buyer2_group = 826 log.uprn = evaluator.uprn || "10033558653" - log.uprn_selection = evaluator.uprn_selection || "10033558653" + log.uprn_selection = evaluator.uprn_selection || evaluator.uprn || "10033558653" end if log.saledate >= Time.zone.local(2025, 4, 1) log.relat2 = "X" if log.relat2 == "C"