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

Keep houndci from barking.

parent 1be653b7
...@@ -129,8 +129,10 @@ module Pod ...@@ -129,8 +129,10 @@ module Pod
it "does not follow redirects infinitely" do it "does not follow redirects infinitely" do
WebMock::API.stub_request(:head, /redirect/).to_return( WebMock::API.stub_request(:head, /redirect/).to_return(
:status => 301, :headers => { 'Location' => 'http://banana-corp.local/redirect/' } ) :status => 301,
Specification.any_instance.stubs(:homepage).returns('http://banana-corp.local/redirect/') :headers => { 'Location' => 'http://banana-corp.local/redirect/' } )
Specification.any_instance.stubs(:homepage).returns(
'http://banana-corp.local/redirect/')
@sut.validate @sut.validate
@sut.results.map(&:to_s).first.should.match /The URL \(.*\) is not reachable/ @sut.results.map(&:to_s).first.should.match /The URL \(.*\) is not reachable/
end end
......
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