Skip to content
Browse files

Use each_value

  • Loading branch information...
1 parent 17cb126 commit 06e06cd454f3699d970c7dc8404170ac236c7743 @rafaelfranca rafaelfranca committed Jan 29, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/testing/time_helpers.rb
View
2 activesupport/lib/active_support/testing/time_helpers.rb
@@ -23,7 +23,7 @@ def stub_object(object, method_name, return_value)
end
def unstub_all!
- @stubs.each do |_, stub|
+ @stubs.each_value do |stub|
unstub_object(stub)
end
@stubs = {}

0 comments on commit 06e06cd

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