Skip to content

Commit

Permalink
added an integration test that checks ActionController::UnknownFormat…
Browse files Browse the repository at this point in the history
… renders 406 :not_acceptable
  • Loading branch information
ssoroka committed May 6, 2012
1 parent 3532200 commit ec4045c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions actionpack/test/controller/integration_test.rb
Expand Up @@ -405,6 +405,15 @@ def test_xml_http_request_get
end
end

def test_request_with_bad_format
with_test_route_set do
xhr :get, '/get.php'
assert_equal 406, status
assert_response 406
assert_response :not_acceptable
end
end

def test_get_with_query_string
with_test_route_set do
get '/get_with_params?foo=bar'
Expand Down

0 comments on commit ec4045c

Please sign in to comment.