Permalink
Browse files

Don't shadow vars on 1.9!

  • Loading branch information...
1 parent e89b2ab commit bb3a5c32399ab8066eb5318de3de6dbe6b6b83b2 @raggi raggi committed Jan 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/test_pool.rb
View
@@ -133,8 +133,8 @@ def test_contents_when_perform_errors_and_on_error_is_not_set
def test_contents_when_perform_errors_and_on_error_is_set
pool.add :res
res = nil
- pool.on_error do |res|
- res = res
+ pool.on_error do |r|
+ res = r
end
assert_equal [:res], pool.contents

0 comments on commit bb3a5c3

Please sign in to comment.