Commit b9f99d11 authored by Boris Bügling's avatar Boris Bügling

Fixed test for relative redirect.

As / points to the root of the domain, the expected result was actually wrong.
parent 616f89b4
......@@ -147,10 +147,10 @@ module Pod
end
it "supports relative redirects" do
WebMock::API.stub_request(:head, /redirect$/).to_return(
WebMock::API.stub_request(:head, /redirect/).to_return(
:status => 302,
:headers => { 'Location' => '/' })
WebMock::API.stub_request(:head, /redirect\/$/).to_return(
:headers => { 'Location' => '/foo' })
WebMock::API.stub_request(:head, /foo/).to_return(
:status => 200 )
Specification.any_instance.stubs(:homepage).returns(
'http://banana-corp.local/redirect')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment