From 544d44fb53616ecf475d24b3e395cb9a07e0a70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 19 Aug 2016 01:48:56 -0300 Subject: [PATCH] Copy edits in the documentation [ci skip] --- actionpack/CHANGELOG.md | 8 +++++--- actionpack/lib/action_controller/test_case.rb | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 7d1f67eec0..9dab1cc76a 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 c7f40fd0e7..11a6cf8e15 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: # -- GitLab