提交 647c55ac 编写于 作者: G Guillermo Iguaran

Prefer each instead of for in activeresource

上级 9dabbd0c
......@@ -55,7 +55,7 @@ def initialize(responses)
@responses = responses
end
for method in [ :post, :put, :get, :delete, :head ]
[ :post, :put, :get, :delete, :head ].each do |method|
# def post(path, request_headers = {}, body = nil, status = 200, response_headers = {})
# @responses[Request.new(:post, path, nil, request_headers)] = Response.new(body || "", status, response_headers)
# end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册