assert_redirects always prepends the location with "http://localhost". This is fine for 95 percent of time, but sometimes I want to test if the response redirects to another domain. Thus, assert_redirects should only prepend the location with "http://localhost" if the location is not absolute.
assert_redirectsalways prepends the location with "http://localhost". This is fine for 95 percent of time, but sometimes I want to test if the response redirects to another domain. Thus,assert_redirectsshould only prepend the location with "http://localhost" if the location is not absolute.