TestDispatch.follow_redirect

You're seeing just the function follow_redirect, go back to TestDispatch module for more information.
Link to this function

follow_redirect(conn, status \\ 302)

View Source

Specs

follow_redirect(Plug.Conn.t(), integer()) :: Plug.Conn.t()

Will take a conn that was redirected. It takes the path that was redirected to and performs a get on it. If the status does not match the redirected status it will raise an error. By default the status is 302.

Examples

iex> conn = build_conn() |> get("/posts/1")
iex> conn = click_link(conn, "post-123-delete-post")
iex> result = follow_redirect(conn, 302) |> html_response(200)
iex> if result =~ "Posts Index", do: :ok
:ok