Skip to content

Commit

Permalink
Use each_value
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jan 29, 2014
1 parent 17cb126 commit 06e06cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/testing/time_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 06e06cd

Please sign in to comment.