From f0c3fcc0fef3e0c8177cc81bc18f6824d7208237 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Fri, 22 Oct 2021 15:58:27 +0100 Subject: [PATCH] Another approach to spec failures --- spec/factories/case_log.rb | 2 +- spec/factories/income_range.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/factories/case_log.rb b/spec/factories/case_log.rb index 044a4cbac..86472e264 100644 --- a/spec/factories/case_log.rb +++ b/spec/factories/case_log.rb @@ -1,6 +1,6 @@ FactoryBot.define do factory :case_log do - sequence(:id) { |i| i } + id { (CaseLog.maximum(:id) || 0) + 1 } trait :in_progress do status { 1 } tenant_code { "TH356" } diff --git a/spec/factories/income_range.rb b/spec/factories/income_range.rb index 188554512..b444bf358 100644 --- a/spec/factories/income_range.rb +++ b/spec/factories/income_range.rb @@ -1,6 +1,5 @@ FactoryBot.define do factory :income_range do - sequence(:id) { |i| i } trait :full_time do economic_status { "Full-time - 30 hours or more" } soft_min { 143 }