From 7fe6002793fd14f57fc2d7bd4506c82afb18aec4 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 6 Jun 2012 21:56:27 +0900 Subject: MiniTest::Spec shipped with Ruby >= 1.9.3 always responds_to __name__ --- activesupport/lib/active_support/test_case.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb index 9a52c916ec..14ceb7072e 100644 --- a/activesupport/lib/active_support/test_case.rb +++ b/activesupport/lib/active_support/test_case.rb @@ -22,8 +22,7 @@ module ActiveSupport end Assertion = MiniTest::Assertion - alias_method :method_name, :name if method_defined? :name - alias_method :method_name, :__name__ if method_defined? :__name__ + alias_method :method_name, :__name__ $tags = {} def self.for_tag(tag) -- cgit v1.2.3