Skip to content

Commit

Permalink
Ruby 1.9.2 compat: name method was renamed to __name__ since MiniTest…
Browse files Browse the repository at this point in the history
… 1.4.x [#2922 state:resolved]

Signed-off-by: Yehuda Katz <wycats@gmail.com>
  • Loading branch information
amatsuda authored and wycats committed Jul 21, 2009
1 parent 9163b9a commit 9d7aae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activesupport/lib/active_support/test_case.rb
Expand Up @@ -19,7 +19,8 @@ module ActiveSupport
class TestCase < ::Test::Unit::TestCase
if defined? MiniTest
Assertion = MiniTest::Assertion
alias_method :method_name, :name
alias_method :method_name, :name if method_defined? :name
alias_method :method_name, :__name__ if method_defined? :__name__
else
# TODO: Figure out how to get the Rails::BacktraceFilter into minitest/unit
if defined?(Rails) && ENV['BACKTRACE'].nil?
Expand Down

0 comments on commit 9d7aae7

Please sign in to comment.