aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/test_case.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-15 17:45:36 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-15 17:45:36 -0800
commitfd990f24df87c0a445ea6a2a2df6fa8fbd3556b1 (patch)
tree9857310ee82e2baa38e756c2233a3f2a813ecee0 /activesupport/lib/active_support/test_case.rb
parent9669aa7cf1c50964c4729fbd50a8776a1e815b44 (diff)
parent48f9999fc3377f5e97513319313a70cf953fd617 (diff)
downloadrails-fd990f24df87c0a445ea6a2a2df6fa8fbd3556b1.tar.gz
rails-fd990f24df87c0a445ea6a2a2df6fa8fbd3556b1.tar.bz2
rails-fd990f24df87c0a445ea6a2a2df6fa8fbd3556b1.zip
Merge pull request #8933 from freerange/3-2-stable-with-minitest-fix
Make tests for the presence of MiniTest consistent
Diffstat (limited to 'activesupport/lib/active_support/test_case.rb')
-rw-r--r--activesupport/lib/active_support/test_case.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index 8d6c27e381..573736ede7 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -10,7 +10,7 @@ require 'active_support/core_ext/kernel/reporting'
module ActiveSupport
class TestCase < ::Test::Unit::TestCase
- if defined? MiniTest
+ if defined?(MiniTest::Assertions) && TestCase < MiniTest::Assertions
Assertion = MiniTest::Assertion
alias_method :method_name, :name if method_defined? :name
alias_method :method_name, :__name__ if method_defined? :__name__