mirror of
https://github.com/wahyd4/ruby-sdk.git
synced 2026-08-09 04:46:10 +10:00
为send_request_with返回的HTTP Response Header添加对比数据。
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user