Module | ActionDispatch::Integration::RequestHelpers |
In: |
lib/action_dispatch/testing/integration.rb
|
Performs a DELETE request with the given parameters. See get() for more details.
Performs a DELETE request, following any subsequent redirect. See request_via_redirect for more information.
Follow a single redirect response. If the last response was not a redirect, an exception will be raised. Otherwise, the redirect is performed on the location header.
Performs a GET request with the given parameters.
This method returns an Response object, which one can use to inspect the details of the response. Furthermore, if this method was called from an ActionDispatch::IntegrationTest object, then that object‘s @response instance variable will point to the same response object.
You can also perform POST, PUT, DELETE, and HEAD requests with post, put, delete, and head.
Performs a GET request, following any subsequent redirect. See request_via_redirect for more information.
Performs a HEAD request with the given parameters. See get() for more details.
Performs a POST request with the given parameters. See get() for more details.
Performs a POST request, following any subsequent redirect. See request_via_redirect for more information.
Performs a PUT request with the given parameters. See get() for more details.
Performs a PUT request, following any subsequent redirect. See request_via_redirect for more information.
Performs a request using the specified method, following any subsequent redirect. Note that the redirects are followed until the response is not a redirect—this means you may run into an infinite loop if your redirect loops back to itself.
Performs an XMLHttpRequest request with the given parameters, mirroring a request from the Prototype library.
The request_method is :get, :post, :put, :delete or :head; the parameters are nil, a hash, or a url-encoded or multipart string; the headers are a hash. Keys are automatically upcased and prefixed with ‘HTTP_’ if not already.