diff options
author | Dmitriy Budnik <dmitriy.budnik@gmail.com> | 2017-03-16 13:06:42 +0200 |
---|---|---|
committer | Dmytro Budnyk <dmitriy.budnik@gmail.com> | 2017-03-16 13:29:31 +0200 |
commit | 20a0f5e8399f6f2cf3352ace55628c352cf8e688 (patch) | |
tree | 8fbd8681dea18fef8787a63b8e4220c8ac029c17 /actionpack/lib | |
parent | b9c399de22aa84c94bb6b2edf6f8e88b88ac5f4a (diff) | |
download | rails-20a0f5e8399f6f2cf3352ace55628c352cf8e688.tar.gz rails-20a0f5e8399f6f2cf3352ace55628c352cf8e688.tar.bz2 rails-20a0f5e8399f6f2cf3352ace55628c352cf8e688.zip |
Updates incorrect documentation [ci skip]
Looking on code for this method it's clear that it's just returns `response.status` instead of full `response` object.
It's better to correct docs as probably lots of specs are relying on this behavior.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index a3430e210e..697abc1c48 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -192,11 +192,10 @@ module ActionDispatch # HTTP methods in integration tests. +#process+ is only required when using a # request method that doesn't have a method defined in the integration tests. # - # This method returns a Response object, which one can use to - # inspect the details of the response. Furthermore, if this method was + # This method returns a response status. Furthermore, if this method was # called from an ActionDispatch::IntegrationTest object, then that - # object's <tt>@response</tt> instance variable will point to the same - # response object. + # object's <tt>@response</tt> instance variable will point to Response object + # which one can use to inspect the details of the response. # # Example: # process :get, '/author', params: { since: 201501011400 } |