Skip to content

Commit

Permalink
test: remove FACTORIES_EXCLUDED_FROM_LINT
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Feb 10, 2024
1 parent 930cf39 commit 1cf665a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/rails_helper.rb
Expand Up @@ -11,7 +11,6 @@
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!
Expand All @@ -26,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#(FactoryBot.factories.select { |f| !FACTORIES_EXCLUDED_FROM_LINT.include?(f.name.to_sym) })
ensure
DatabaseCleaner.clean
end
Expand Down

0 comments on commit 1cf665a

Please sign in to comment.