Permalink
Browse files

added an integration test that checks ActionController::UnknownFormat…

… renders 406 :not_acceptable
  • Loading branch information...
ssoroka committed Jul 28, 2011
1 parent 3532200 commit ec4045c02fb112937116f827c508c3680a495326
Showing with 9 additions and 0 deletions.
  1. +9 −0 actionpack/test/controller/integration_test.rb
@@ -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'

0 comments on commit ec4045c

Please sign in to comment.