From c638d47872e50fc48cedc4dd772efcf3fefca831 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sun, 27 Nov 2016 18:10:16 +0100 Subject: [ci skip] Update the `as` docs. Mention the Accept header and how that figures into the request format. --- actionpack/lib/action_dispatch/testing/integration.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch/testing/integration.rb') 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 -- cgit v1.2.3