Skip to content
This repository
Browse code

MiniTest::Spec shipped with Ruby >= 1.9.3 always responds_to __name__

  • Loading branch information...
commit 7fe6002793fd14f57fc2d7bd4506c82afb18aec4 1 parent 9fb7003
Akira Matsuda authored June 06, 2012
3  activesupport/lib/active_support/test_case.rb
@@ -22,8 +22,7 @@ class << self
22 22
     end
23 23
 
24 24
     Assertion = MiniTest::Assertion
25  
-    alias_method :method_name, :name if method_defined? :name
26  
-    alias_method :method_name, :__name__ if method_defined? :__name__
  25
+    alias_method :method_name, :__name__
27 26
 
28 27
     $tags = {}
29 28
     def self.for_tag(tag)

0 notes on commit 7fe6002

Please sign in to comment.
Something went wrong with that request. Please try again.