mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Ruby 1.9.2 compat: name method was renamed to __name__ since MiniTest 1.4.x [#2922 state:resolved]
Signed-off-by: Yehuda Katz <wycats@gmail.com>
This commit is contained in:
committed by
Yehuda Katz
parent
9163b9ac9d
commit
9d7aae7103
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user