1
Shindo.tests('Excon redirector support') do
4
tests("request(:method => :get, :path => '/old').body").returns('new') do
8
:headers => { 'Location' => 'http://127.0.0.1:9292/new' },
23
'http://127.0.0.1:9292',
25
:middlewares => Excon.defaults[:middlewares] + [Excon::Middleware::RedirectFollower],
33
Shindo.tests('Excon redirect support for relative Location headers') do
36
tests("request(:method => :get, :path => '/old').body").returns('new') do
40
:headers => { 'Location' => '/new' },
55
'http://127.0.0.1:9292',
57
:middlewares => Excon.defaults[:middlewares] + [Excon::Middleware::RedirectFollower],