aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-08-19 01:42:21 -0300
committerGitHub <noreply@github.com>2016-08-19 01:42:21 -0300
commit03b9a11f93e235f803a7029e9a31dd11127f8f3e (patch)
tree06b413129a9a80ac9008e8f03cd9b8396a58d270 /actionpack/CHANGELOG.md
parente87158f16b2a85beed690620a5f5e6d57ee505e3 (diff)
parent3db57bde1ef435a38337f6db298b851c8a4ad10c (diff)
downloadrails-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.md5
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