From c2ff3790dbaece2cf2d62f81c8b8c988de67f2dd Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sat, 21 Apr 2018 09:22:35 +1200 Subject: [PATCH] set finished false on planting factory some code+tests doesn't cope with nil --- spec/factories/planting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/factories/planting.rb b/spec/factories/planting.rb index f19d80145..27a2b179d 100644 --- a/spec/factories/planting.rb +++ b/spec/factories/planting.rb @@ -6,7 +6,7 @@ FactoryBot.define do planted_at { Time.zone.local(2014, 7, 30) } quantity 33 description "This is a *really* good plant." - finished nil + finished false finished_at nil factory :seed_planting do