diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-06-07 11:20:48 -0700 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-06-07 11:29:09 -0700 |
commit | d68562e3c7ec8061c766ad8d5e189b5f460903c0 (patch) | |
tree | 4cb168898eef1ace7413854e0cad89ec25afd91a /railties/lib/rails/api/task.rb | |
parent | 1ffa9aa2846b1eed68b3cd01bc47a570e57c03e3 (diff) | |
download | rails-d68562e3c7ec8061c766ad8d5e189b5f460903c0.tar.gz rails-d68562e3c7ec8061c766ad8d5e189b5f460903c0.tar.bz2 rails-d68562e3c7ec8061c766ad8d5e189b5f460903c0.zip |
Fix API controller tests by assigning them the encoding type
- Fixes #25183.
- The `as: :json` feature was added in
https://github.com/rails/rails/pull/21671 and recommended to use for
JSON endpoints so let's use it by default for API controller tests.
Diffstat (limited to 'railties/lib/rails/api/task.rb')
0 files changed, 0 insertions, 0 deletions