From 27eb25fc1115818cbec48eec6330b434987dbd95 Mon Sep 17 00:00:00 2001 From: Liang Tao Date: Mon, 24 Mar 2014 18:34:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BAsend=5Frequest=5Fwith=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=9A=84HTTP=20Response=20Header=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AF=B9=E6=AF=94=E6=95=B0=E6=8D=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/qiniu/utils_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/qiniu/utils_spec.rb b/spec/qiniu/utils_spec.rb index fb00074..5ef8625 100755 --- a/spec/qiniu/utils_spec.rb +++ b/spec/qiniu/utils_spec.rb @@ -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|