Copy-edit the documentation

[ci skip]
上级 da840cd8
......@@ -177,7 +177,7 @@ def https?
#
# - +method+: The HTTP method (GET, POST, PATCH, PUT, DELETE, HEAD, OPTIONS)
# as a symbol.
# - +path+: The URI (as a String) on which you want to perform a GET
# - +path+: The URI (as a String) on which you want to perform the
# request.
# - +params+: The HTTP parameters that you want to pass. This may
# be +nil+,
......@@ -190,8 +190,8 @@ def https?
# merged into the Rack env hash.
#
# This method is rarely used directly. Use +#get+, +#post+, or other standard
# HTTP methods in integration tests. Only +#process+ is only required for an
# OPTIONS request.
# HTTP methods in integration tests. +#process+ is only required when using a
# request method that doesn't have a method defined in the integrations tests.
#
# This method returns a Response object, which one can use to
# inspect the details of the response. Furthermore, if this method was
......@@ -199,7 +199,7 @@ def https?
# object's <tt>@response</tt> instance variable will point to the same
# response object.
#
# Examples:
# Example:
# process :get, '/author', params: { since: 201501011400 }
def process(method, path, params: nil, headers: nil, env: nil, xhr: false, as: nil)
request_encoder = RequestEncoder.encoder(as)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册