diff options
author | Benjamin Fleischer <github@benjaminfleischer.com> | 2016-05-23 16:18:27 -0500 |
---|---|---|
committer | Benjamin Fleischer <benjamin.fleischer@swipesense.com> | 2016-05-23 16:25:23 -0500 |
commit | 152ac626afac4c15310ec90a442f5953fe04ba6e (patch) | |
tree | 1e6668656181297ec6df744e721d3923ec0df80e /activesupport/test/callbacks_test.rb | |
parent | 28492204ee59a5aca2f3bc7b161d45724552686d (diff) | |
download | rails-152ac626afac4c15310ec90a442f5953fe04ba6e.tar.gz rails-152ac626afac4c15310ec90a442f5953fe04ba6e.tar.bz2 rails-152ac626afac4c15310ec90a442f5953fe04ba6e.zip |
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.
Diffstat (limited to 'activesupport/test/callbacks_test.rb')
0 files changed, 0 insertions, 0 deletions