1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_controller
eileencodes 9540a7b119
Fix json encoded controller tests
The controller test case is trying to encode json parameters in the same
way it encodes query parameters. However we need to encode json
parameters as json.

This was broken in #39534 because `generate_extras` is encoding
everything into query parameters. But json parameters are in the post
body and need to be treated differently than the query parameters.

Followup to #39651

Aaron Patterson <tenderlove@ruby-lang.org>
2020-06-18 17:15:48 -04:00
..
api Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
metal Add application config for URL-safe Base64 CSRF tokens 2020-06-11 11:39:37 -04:00
railties Fix call sites 2018-10-02 15:31:29 -04:00
api.rb Remove deprecated force_ssl at the controller level. 2020-05-05 00:58:54 -04:00
base.rb Remove deprecated force_ssl at the controller level. 2020-05-05 00:58:54 -04:00
caching.rb No need to extend ActionController::Caching by ActiveSupport::Autoload 2020-05-26 22:00:13 +03:00
form_builder.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
log_subscriber.rb Add to the log format "*/*" if using a not found format: 2020-01-02 16:45:47 -03:00
metal.rb Update rubocop-performance gem and enable Performance/DeletePrefix and Performance/DeleteSuffix cops 2020-05-24 12:51:35 +03:00
railtie.rb [Action Pack] require => require_relative 2017-10-21 22:48:28 +09:00
renderer.rb Simplify renderer normalize keys 2020-03-20 14:05:22 -04:00
template_assertions.rb Remove compatibility module from docs [ci skip] 2019-05-22 11:58:14 -04:00
test_case.rb Fix json encoded controller tests 2020-06-18 17:15:48 -04:00