method
normalize_argument_to_redirection
rails latest stable - Class:
ActionDispatch::Assertions::ResponseAssertions
normalize_argument_to_redirection(fragment)private
No documentation available.
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 77
def normalize_argument_to_redirection(fragment)
if Regexp === fragment
fragment
else
handle = @controller || ActionController::Redirecting
handle._compute_redirect_to_location(@request, fragment)
end
end