1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/dispatch/request
Benjamin Fleischer 152ac626af Modifies mime-registration test not to interfere with real mime types
The tests introduced in
https://github.com/rails/rails/pull/23816/files#diff-384a5a15d8d53de799fb6541688ea5f9R153
register the JSON API media type `application/vnd.api+json` with
`Mime[:json]`. The JSON API media type should not be registered
with `Mime[:json]`, as discussed in #23712.  Moreover,
since the actual mime type used in the test is
incidental, I've changed this to a valid, but fictional
`applcation/vnd.rails+json`.

These tests were causing failures in
https://github.com/rails/rails/pull/25050#issuecomment-221092934 where
`Mime[:jsonapi]` is being added, so that JSON API request params are parsed
with the JSONAPI gem.
2016-05-23 16:25:23 -05:00
..
json_params_parsing_test.rb Modifies mime-registration test not to interfere with real mime types 2016-05-23 16:25:23 -05:00
multipart_params_parsing_test.rb Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
query_string_parsing_test.rb Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
session_test.rb Ensure compatibility between ActionDispatch::Request::Session and Rack 2016-05-04 15:49:25 -04:00
url_encoded_params_parsing_test.rb Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00