Permalink
Browse files

Merge pull request #6647 from amatsuda/192_minitest_method_name

MiniTest::Spec shipped with Ruby >= 1.9.3 always responds_to __name__
  • Loading branch information...
2 parents 9fb7003 + 7fe6002 commit 96123978ff5cbfe1ce56c2a3203b02007823335b @rafaelfranca rafaelfranca committed Jun 6, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 activesupport/lib/active_support/test_case.rb
@@ -22,8 +22,7 @@ class << self
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)

0 comments on commit 9612397

Please sign in to comment.