Skip to content

Commit

Permalink
Copy edits in the documentation [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Aug 19, 2016
1 parent 03b9a11 commit 544d44f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions actionpack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand Down

0 comments on commit 544d44f

Please sign in to comment.