مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
chore: various tweaks to support running tests in the CI
هذا الالتزام موجود في:
@@ -1,4 +1,4 @@
|
||||
ENV['POSTAL_CONFIG_ROOT'] = File.expand_path('../config', __FILE__)
|
||||
ENV['POSTAL_CONFIG_ROOT'] ||= File.expand_path('../config', __FILE__)
|
||||
|
||||
require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rspec/rails'
|
||||
@@ -6,6 +6,9 @@ require 'spec_helper'
|
||||
require 'factory_bot'
|
||||
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', __FILE__)].each { |f| require f }
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم