test: FactoryBot.lint will lint all registered factories

This commit is contained in:
Adam Cooke
2024-02-10 17:18:24 +00:00
parent cfd8d63321
commit 25d7d66b47
+1 -1
View File
@@ -25,7 +25,7 @@ RSpec.configure do |config|
# 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