mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Explicitly require files before monkey patching them.
This commit is contained in:
parent
a5e98d7067
commit
b9f551ac15
1 changed files with 5 additions and 1 deletions
|
@ -4,14 +4,18 @@ abort("Abort testing: Your Rails environment is not running in test mode!") unle
|
|||
|
||||
require 'test/unit'
|
||||
require 'active_support/core_ext/kernel/requires'
|
||||
require 'active_support/test_case'
|
||||
require 'action_controller/test_case'
|
||||
require 'action_dispatch/testing/integration'
|
||||
|
||||
# TODO: Figure out how to get the Rails::BacktraceFilter into minitest/unit
|
||||
if defined?(Test::Unit::Util::BacktraceFilter) && ENV['BACKTRACE'].nil?
|
||||
require 'rails/backtrace_cleaner'
|
||||
Test::Unit::Util::BacktraceFilter.module_eval { include Rails::BacktraceFilterForTestUnit }
|
||||
end
|
||||
|
||||
if defined?(ActiveRecord)
|
||||
require 'active_record/test_case'
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
include ActiveRecord::TestFixtures
|
||||
self.fixture_path = "#{Rails.root}/test/fixtures/"
|
||||
|
|
Loading…
Reference in a new issue