aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/test_case.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-13 02:34:42 -0800
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-13 02:34:42 -0800
commit0ed585adeb10d11badc892702d01e3c7addccbf4 (patch)
treed862bbf79ed1a16312763a4b3eb641c53e78b15b /activesupport/lib/active_support/test_case.rb
parent3e53fe635c6e7b82609219422458574e2f74b551 (diff)
parent3791cac8747b5e36fe9619301a55d69f8feff982 (diff)
downloadrails-0ed585adeb10d11badc892702d01e3c7addccbf4.tar.gz
rails-0ed585adeb10d11badc892702d01e3c7addccbf4.tar.bz2
rails-0ed585adeb10d11badc892702d01e3c7addccbf4.zip
Merge pull request #8200 from freerange/3-2-stable-with-mocha-fixes
Fix 3-2-stable to work with Mocha v0.13.0
Diffstat (limited to 'activesupport/lib/active_support/test_case.rb')
-rw-r--r--activesupport/lib/active_support/test_case.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index 8d6c27e381..8f75cf98f4 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -9,7 +9,9 @@ require 'active_support/testing/mochaing'
require 'active_support/core_ext/kernel/reporting'
module ActiveSupport
- class TestCase < ::Test::Unit::TestCase
+ test_library = defined?(MiniTest) ? ::MiniTest : ::Test
+
+ class TestCase < test_library::Unit::TestCase
if defined? MiniTest
Assertion = MiniTest::Assertion
alias_method :method_name, :name if method_defined? :name