From 1cf665a0cf61d1eae3d08bdadf6fccaab6413023 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Sat, 10 Feb 2024 16:57:58 +0000 Subject: [PATCH] test: remove FACTORIES_EXCLUDED_FROM_LINT --- spec/rails_helper.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 2d480a6..f262583 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -11,7 +11,6 @@ require "database_cleaner" DatabaseCleaner.allow_remote_database_url = true ActiveRecord::Base.logger = Logger.new("/dev/null") -FACTORIES_EXCLUDED_FROM_LINT = [] Dir[File.expand_path("factories/*.rb", __dir__)].each { |f| require f } ActiveRecord::Migration.maintain_test_schema! @@ -26,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#(FactoryBot.factories.select { |f| !FACTORIES_EXCLUDED_FROM_LINT.include?(f.name.to_sym) }) ensure DatabaseCleaner.clean end