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:
parent
3532200576
commit
ec4045c02f
1 changed files with 9 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue