Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule CatcastsPhx13Web.AuthControllerTest do
- use CatcastsPhx13Web.ConnCase
- alias CatcastsPhx13.Repo
- alias CatcastsPhx13.User
- import CatcastsPhx13.Factory # Add this line
- ... # Code removed for readability
- test "signs out user", %{conn: conn} do
- user = insert(:user)
- conn = conn
- |> assign(:user, user)
- |> get("/signout")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement