Method: ActionDispatch::Integration::RequestHelpers#follow_redirect!
- Defined in:
- actionpack/lib/action_dispatch/testing/integration.rb
#follow_redirect! ⇒ Object
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.
78 79 80 81 82 |
# File 'actionpack/lib/action_dispatch/testing/integration.rb', line 78 def follow_redirect! raise "not a redirect! #{status} #{}" unless redirect? get(response.location) status end |