From 25d7d66b4709fe5442d554097a6ef074aeb15f72 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Sat, 10 Feb 2024 17:10:38 +0000 Subject: [PATCH] test: FactoryBot.lint will lint all registered factories --- spec/rails_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index f2625834..2c00384a 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -25,7 +25,7 @@ # the rest of the suite. begin DatabaseCleaner.start - FactoryBot.lint#(FactoryBot.factories.select { |f| !FACTORIES_EXCLUDED_FROM_LINT.include?(f.name.to_sym) }) + FactoryBot.lint ensure DatabaseCleaner.clean end