spec/httpi/adapter/curb_spec.rb in httpi-0.6.0 vs spec/httpi/adapter/curb_spec.rb in httpi-0.6.1
- old
+ new
@@ -17,11 +17,11 @@
describe "#get" do
before do
curb.expects(:http_get)
curb.expects(:response_code).returns(200)
- curb.expects(:headers).returns(Hash.new)
+ curb.expects(:header_str).returns("")
curb.expects(:body_str).returns(Fixture.xml)
end
it "should return a valid HTTPI::Response" do
adapter.get(basic_request).should match_response(:body => Fixture.xml)
@@ -30,11 +30,11 @@
describe "#post" do
before do
curb.expects(:http_post)
curb.expects(:response_code).returns(200)
- curb.expects(:headers).returns(Hash.new)
+ curb.expects(:header_str).returns("")
curb.expects(:body_str).returns(Fixture.xml)
end
it "should return a valid HTTPI::Response" do
adapter.post(basic_request).should match_response(:body => Fixture.xml)
@@ -43,11 +43,11 @@
describe "#head" do
before do
curb.expects(:http_head)
curb.expects(:response_code).returns(200)
- curb.expects(:headers).returns(Hash.new)
+ curb.expects(:header_str).returns("")
curb.expects(:body_str).returns(Fixture.xml)
end
it "should return a valid HTTPI::Response" do
adapter.head(basic_request).should match_response(:body => Fixture.xml)
@@ -56,11 +56,11 @@
describe "#put" do
before do
curb.expects(:http_put)
curb.expects(:response_code).returns(200)
- curb.expects(:headers).returns(Hash.new)
+ curb.expects(:header_str).returns("")
curb.expects(:body_str).returns(Fixture.xml)
end
it "should return a valid HTTPI::Response" do
adapter.put(basic_request).should match_response(:body => Fixture.xml)
@@ -69,10 +69,10 @@
describe "#delete" do
before do
curb.expects(:http_delete)
curb.expects(:response_code).returns(200)
- curb.expects(:headers).returns(Hash.new)
+ curb.expects(:header_str).returns("")
curb.expects(:body_str).returns("")
end
it "should return a valid HTTPI::Response" do
adapter.delete(basic_request).should match_response(:body => "")