aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/test_case.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-11-26 17:20:05 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2008-11-26 17:20:05 -0800
commit5fa8c3b6db48c0be923e4572468493f162551336 (patch)
tree8cd768a1f88adfbfbb0d3b4ba1844ef25b423687 /activesupport/lib/active_support/test_case.rb
parent9880baa90b330225f989a70c8859a29cec24f1ec (diff)
downloadrails-5fa8c3b6db48c0be923e4572468493f162551336.tar.gz
rails-5fa8c3b6db48c0be923e4572468493f162551336.tar.bz2
rails-5fa8c3b6db48c0be923e4572468493f162551336.zip
MiniTest::Unit#method_name alias for Test::Unit compat
Diffstat (limited to 'activesupport/lib/active_support/test_case.rb')
-rw-r--r--activesupport/lib/active_support/test_case.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index 1cc8564a18..97b2b6ef9c 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -17,6 +17,7 @@ module ActiveSupport
class TestCase < ::Test::Unit::TestCase
if defined? MiniTest
Assertion = MiniTest::Assertion
+ alias_method :method_name, :name
else
# TODO: Figure out how to get the Rails::BacktraceFilter into minitest/unit
if defined?(Rails)