Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

previous implementation of current_method does not actually work... t…

…his is a workaround which still will not work with shoulda, but that's ok
  • Loading branch information...
commit 481e0959989ff8d2b169289013d91d0d36957906 1 parent ed4176d
Lawrence Wang authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/minitest/reporter.rb
View
2  lib/minitest/reporter.rb
@@ -31,7 +31,7 @@ def failure(suite, test, test_runner); end
def error(suite, test, test_runner); end
def current_method
- caller[0] =~ /`(.*?)'/
+ caller.reject{|x| x =~ /minitest/ }[0] =~ /`(.*?)'/
$1
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.