diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-26 17:20:05 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-26 17:20:05 -0800 |
commit | 5fa8c3b6db48c0be923e4572468493f162551336 (patch) | |
tree | 8cd768a1f88adfbfbb0d3b4ba1844ef25b423687 /activesupport | |
parent | 9880baa90b330225f989a70c8859a29cec24f1ec (diff) | |
download | rails-5fa8c3b6db48c0be923e4572468493f162551336.tar.gz rails-5fa8c3b6db48c0be923e4572468493f162551336.tar.bz2 rails-5fa8c3b6db48c0be923e4572468493f162551336.zip |
MiniTest::Unit#method_name alias for Test::Unit compat
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/test_case.rb | 1 |
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) |