Skip to content

Commit

Permalink
test hella redirect failures
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Jan 14, 2012
1 parent 11b1428 commit 8e497d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/proxy_test.rb
Expand Up @@ -33,6 +33,12 @@ def test_follows_redirects
assert_equal(200, response.code)
end

def test_404s_on_infinidirect
assert_raise RestClient::ResourceNotFound do
request('http://modeselektor.herokuapp.com/')
end
end

def test_404s_on_urls_without_an_http_host
assert_raise RestClient::ResourceNotFound do
request('/picture/Mincemeat/Pimp.jpg')
Expand Down

0 comments on commit 8e497d0

Please sign in to comment.