1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

test: remove FACTORIES_EXCLUDED_FROM_LINT

هذا الالتزام موجود في:
Adam Cooke
2024-02-10 16:57:58 +00:00
الأصل 930cf39dba
التزام 1cf665a0cf

عرض الملف

@@ -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