method
location_if_redirected
v7.1.3.4 -
Show latest stable
- Class:
ActionDispatch::Assertions::ResponseAssertions
location_if_redirected()private
No documentation available.
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 96
def location_if_redirected
return "" unless @response.redirection? && @response.location.present?
location = normalize_argument_to_redirection(@response.location)
" redirect to <#{location}>"
end