1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

added an integration test that checks ActionController::UnknownFormat renders 406 :not_acceptable

This commit is contained in:
Steven Soroka 2011-07-28 00:01:29 -04:00
parent 3532200576
commit ec4045c02f

View file

@ -405,6 +405,15 @@ class IntegrationProcessTest < ActionDispatch::IntegrationTest
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'