spec/response_spec.rb in patron-0.4.5 vs spec/response_spec.rb in patron-0.4.6
- old
+ new
@@ -36,10 +36,10 @@
response = @session.get("/test")
# All digits, no spaces
response.headers['Content-Length'].should match(/^\d+$/)
end
- it "should combine header values sent in different fields with same name" do
+ it "should return an array of values when multiple header fields have same name" do
response = @session.get("/repetitiveheader")
- response.headers['Set-Cookie'].should == "a=1,b=2"
+ response.headers['Set-Cookie'].should == ["a=1","b=2"]
end
end