diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 7d1f67eec0c3fd38d41bb462ca6da8cfba9fce51..9dab1cc76a7c80ea70dbdfe76e6c9297c2f38aaf 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,7 +1,9 @@ * 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...` + + Specifying `as: mime_type` allows the `CONTENT_TYPE` header to be specified + in controller tests without manually doing this through `@request.headers['CONTENT_TYPE']`. + + *Everest Stefan Munro-Zeisberger* * Show cache hits and misses when rendering partials. diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index c7f40fd0e76e2ce8540630073dd231ebebddf8e1..11a6cf8e15d0baa120278b37288c87b2c5f2746b 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -450,7 +450,7 @@ def xml_http_request(*args) # - +flash+: A hash of parameters to store in the flash. This may be +nil+. # - +format+: Request format. Defaults to +nil+. Can be string or symbol. # - +as+: Content type. Defaults to +nil+. Must be a symbol that corresponds - # to a mime type + # to a mime type. # # Example calling +create+ action and sending two params: #