diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-05-07 20:44:38 -0500 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-05-11 09:04:02 +0530 |
commit | c33bda875e562561292eafc7c99362f23cf8150a (patch) | |
tree | 2fc15324e92c964a1070b8d95d0cfca4ba5d3678 /activerecord/test | |
parent | 40d5c3370f8e5e0d3d03a7a25a64fde5122a069e (diff) | |
download | rails-c33bda875e562561292eafc7c99362f23cf8150a.tar.gz rails-c33bda875e562561292eafc7c99362f23cf8150a.tar.bz2 rails-c33bda875e562561292eafc7c99362f23cf8150a.zip |
API only apps: Preserve request format for HTML requests too
- Earlier we were responding with JSON format for HTML requests in a API
app.
- Now we will respond with HTML format for such requests in API apps.
- Also earlier we were not testing the API app's JSON requests
properly. We were actually sending HTML requests. Now we send correct
JSON requests. Also added more test coverage.
- Based on the discussion from this commit -
https://github.com/rails/rails/commit/05d89410bf97d0778e78558db3c9fed275f8a614.
[Prathamesh Sonpatki, Jorge Bejar]
Diffstat (limited to 'activerecord/test')
0 files changed, 0 insertions, 0 deletions