Use each_value

上级 17cb1266
......@@ -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 = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册