为send_request_with返回的HTTP Response Header添加对比数据。

This commit is contained in:
Liang Tao
2014-03-24 18:34:29 +08:00
parent 9374a451cd
commit 27eb25fc11
+1 -1
View File
@@ -28,7 +28,7 @@ module Qiniu
FakeWeb.allow_net_connect = false
FakeWeb.register_uri(:get, "http://docs.qiniutek.com/", :body => {:abc => 123}.to_json)
res = Utils.send_request_with 'http://docs.qiniutek.com/', nil, :method => :get
res.should == [200, {"abc" => 123}]
res.should == [200, {"abc" => 123}, {}]
end
[400, 500].each do |code|