Phoenix.ConnTest.redirected_to/2

Parsed documentation:
View on GitHub
Returns the location header from the given redirect response.

Raises if the response does not match the redirect status code
(defaults to 302).

## Examples

    assert redirected_to(conn) =~ "/foo/bar"
    assert redirected_to(conn, 301) =~ "/foo/bar"
    assert redirected_to(conn, :moved_permanently) =~ "/foo/bar"
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.