Permalink
Browse files

Ruby 1.9: use method_name to work around miniunit API changes

  • Loading branch information...
1 parent c10f4ae commit c44fb4ced5cbe61adb12f3431db05afa492bd176 @jeremy jeremy committed Nov 9, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/testing/setup_and_teardown.rb
View
4 activesupport/lib/active_support/testing/setup_and_teardown.rb
@@ -21,12 +21,12 @@ def run(runner)
run_callbacks :setup
result = super
rescue Exception => e
- result = runner.puke(self.class, self.name, e)
+ result = runner.puke(self.class, method_name, e)
ensure
begin
run_callbacks :teardown, :enumerator => :reverse_each
rescue Exception => e
- result = runner.puke(self.class, self.name, e)
+ result = runner.puke(self.class, method_name, e)
end
end
result

0 comments on commit c44fb4c

Please sign in to comment.