Permalink
Browse files

ruby 1.8 compat

  • Loading branch information...
1 parent a0b4b53 commit c41b2696a8bf04fdf18ea44e5483e640fe1f5284 @mislav mislav committed Jun 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/follow_redirects_spec.rb
@@ -136,7 +136,7 @@
context "is :all" do
it "puts all cookies from the response into the next request" do
- conn = connection(cookies: :all) do |stub|
+ conn = connection(:cookies => :all) do |stub|
stub.get('/') { [301, {'Location' => '/found', 'Cookies' => cookies }, ''] }
stub.get('/found') { [200, {'Content-Type' => 'text/plain'}, ''] }
end.get('/').env[:request_headers][:cookies].should == cookies
@@ -145,7 +145,7 @@
context "is an array of cookie names" do
it "puts selected cookies from the response into the next request" do
- conn = connection(cookies: ['cookie2']) do |stub|
+ conn = connection(:cookies => ['cookie2']) do |stub|
stub.get('/') { [301, {'Location' => '/found', 'Cookies' => cookies }, ''] }
stub.get('/found') { [200, {'Content-Type' => 'text/plain'}, ''] }
end.get('/').env[:request_headers][:cookies].should == 'cookie2=1234567'

0 comments on commit c41b269

Please sign in to comment.