aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/integration.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-11-27 18:10:16 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2016-11-27 18:10:16 +0100
commitc638d47872e50fc48cedc4dd772efcf3fefca831 (patch)
treeb9d3af845156238a28bc0389a863cd2bbca62e3f /actionpack/lib/action_dispatch/testing/integration.rb
parent143fc87cbfee7eb281937be1b404ad18e09dc301 (diff)
downloadrails-c638d47872e50fc48cedc4dd772efcf3fefca831.tar.gz
rails-c638d47872e50fc48cedc4dd772efcf3fefca831.tar.bz2
rails-c638d47872e50fc48cedc4dd772efcf3fefca831.zip
[ci skip] Update the `as` docs.
Mention the Accept header and how that figures into the request format.
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/integration.rb')
-rw-r--r--actionpack/lib/action_dispatch/testing/integration.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb
index b74c5d3e83..1ab6158c90 100644
--- a/actionpack/lib/action_dispatch/testing/integration.rb
+++ b/actionpack/lib/action_dispatch/testing/integration.rb
@@ -577,7 +577,8 @@ module ActionDispatch
# end
# end
#
- # The +as+ option sets the format to JSON, sets the content type to
+ # The +as+ option passes an "application/json" Accept header (thereby setting
+ # the request format to JSON unless overridden), sets the content type to
# "application/json" and encodes the parameters as JSON.
#
# Calling +parsed_body+ on the response parses the response body based on the