method
follow_redirect!
rails latest stable - Class:
ActionController::Integration::Session
follow_redirect!()public
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.