diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-08-19 01:42:21 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-19 01:42:21 -0300 |
commit | 03b9a11f93e235f803a7029e9a31dd11127f8f3e (patch) | |
tree | 06b413129a9a80ac9008e8f03cd9b8396a58d270 /actionpack/CHANGELOG.md | |
parent | e87158f16b2a85beed690620a5f5e6d57ee505e3 (diff) | |
parent | 3db57bde1ef435a38337f6db298b851c8a4ad10c (diff) | |
download | rails-03b9a11f93e235f803a7029e9a31dd11127f8f3e.tar.gz rails-03b9a11f93e235f803a7029e9a31dd11127f8f3e.tar.bz2 rails-03b9a11f93e235f803a7029e9a31dd11127f8f3e.zip |
Merge pull request #26212 from evmunro/as-json-sets-request-to-json-for-controller-test
Allow setting of request CONTENT-TYPE with as: in controller tests
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r-- | actionpack/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 1fb7e20417..7d1f67eec0 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,3 +1,8 @@ +* Add `:as` option to `ActionController:TestCase#process` and related methods. + + Specifying as: :mime_type allows the `CONTENT_TYPE` header to be specified + in controller tests without manually doing this through `@request.headers...` + * Show cache hits and misses when rendering partials. Partials using the `cache` helper will show whether a render hit or missed |