Skip to content

Commit

Permalink
adopt some code style
Browse files Browse the repository at this point in the history
  • Loading branch information
jomo committed Mar 21, 2015
1 parent aed5e72 commit 548c72d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/proxy_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,8 @@ def test_follows_redirects_with_path_only_location_headers

def test_forwards_404_with_image
spawn_server(:not_found) do |host|
response = RestClient.get(request_uri("http://#{host}/octocat.jpg")) do |response, request, result|
# don't raise on 404
response
end
uri = request_uri("http://#{host}/octocat.jpg")
response = RestClient.get(uri){ |response, request, result| response }
assert_equal(404, response.code)
assert_equal("image/jpeg", response.headers[:content_type])
end
Expand Down

0 comments on commit 548c72d

Please sign in to comment.