diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex index c6928ac83..9bc66925c 100644 --- a/test/support/conn_case.ex +++ b/test/support/conn_case.ex @@ -17,7 +17,6 @@ defmodule SkateWeb.ConnCase do use ExUnit.CaseTemplate import Plug.Test - alias Skate.Settings.User using do quote do @@ -36,10 +35,7 @@ defmodule SkateWeb.ConnCase do setup tags do Skate.DataCase.setup_sandbox(tags) - username = "test_user" - email = "test_user@test.com" - - user = User.upsert(username, email) + user = Skate.Factory.insert(:user) resource = %{id: user.id} {conn, user} =