Skip to content
This repository
Browse code

Ruby 1.9: use method_name to work around miniunit API changes

  • Loading branch information...
commit c44fb4ced5cbe61adb12f3431db05afa492bd176 1 parent c10f4ae
Jeremy Kemper authored November 08, 2009
4  activesupport/lib/active_support/testing/setup_and_teardown.rb
@@ -21,12 +21,12 @@ def run(runner)
21 21
             run_callbacks :setup
22 22
             result = super
23 23
           rescue Exception => e
24  
-            result = runner.puke(self.class, self.name, e)
  24
+            result = runner.puke(self.class, method_name, e)
25 25
           ensure
26 26
             begin
27 27
               run_callbacks :teardown, :enumerator => :reverse_each
28 28
             rescue Exception => e
29  
-              result = runner.puke(self.class, self.name, e)
  29
+              result = runner.puke(self.class, method_name, e)
30 30
             end
31 31
           end
32 32
           result

0 notes on commit c44fb4c

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