diff options
author | José Valim <jose.valim@gmail.com> | 2010-03-23 17:48:29 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-23 17:48:29 +0100 |
commit | b9f551ac156effdc33416bcf479a8149e2419aab (patch) | |
tree | b09f36fb31122d54049065107c8545534090a39c /railties/lib/rails | |
parent | a5e98d7067c1387f4d855603b32a1da6d6a5d0be (diff) | |
download | rails-b9f551ac156effdc33416bcf479a8149e2419aab.tar.gz rails-b9f551ac156effdc33416bcf479a8149e2419aab.tar.bz2 rails-b9f551ac156effdc33416bcf479a8149e2419aab.zip |
Explicitly require files before monkey patching them.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/test_help.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index 2ed5353755..6522c94ad6 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -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/" |