Skip to content

Commit

Permalink
fix redirects spec for Faraday 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Mar 11, 2012
1 parent 52f938a commit de2b63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/follow_redirects_spec.rb
Expand Up @@ -44,7 +44,7 @@
connection do |stub|
stub.get('/redirect') { [status_code, {'Location' => '/found'}, ''] }
stub.get('/found') { |env| [200, {'Content-Type' => 'text/plain'}, env[:request_headers]['X-Test-Value']] }
end.get('/redirect', 'X-Test-Value' => 'success').body.should eql 'success'
end.get('/redirect') { |req| req.headers['X-Test-Value'] = 'success' }.body.should eql('success')
end

[:put, :post, :delete, :patch].each do |method|
Expand Down

0 comments on commit de2b63d

Please sign in to comment.