diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-10-15 11:13:13 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-10-15 11:13:13 -0300 |
commit | 10781f30a0401224477b3295ea16f816d522c71f (patch) | |
tree | 2dc8bbb3bce66a3bb44380b419b44dcc538ccc23 /actionpack/lib/action_dispatch/testing | |
parent | da840cd810657e4a25b24df203ebfd00cbb67c37 (diff) | |
download | rails-10781f30a0401224477b3295ea16f816d522c71f.tar.gz rails-10781f30a0401224477b3295ea16f816d522c71f.tar.bz2 rails-10781f30a0401224477b3295ea16f816d522c71f.zip |
Copy-edit the documentation
[ci skip]
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index 6c2d4c3c42..f3e7c6998f 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -177,7 +177,7 @@ module ActionDispatch # # - +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 @@ module ActionDispatch # 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 @@ module ActionDispatch # 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) |