Skip to content

Commit

Permalink
feat(ex/test/conn-case): make default user dynamic from factory
Browse files Browse the repository at this point in the history
  • Loading branch information
firestack committed Nov 7, 2024
1 parent 3fddf0c commit cca18ea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/support/conn_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ defmodule SkateWeb.ConnCase do

use ExUnit.CaseTemplate
import Plug.Test
alias Skate.Settings.User

using do
quote do
Expand All @@ -36,10 +35,7 @@ defmodule SkateWeb.ConnCase do
setup tags do
Skate.DataCase.setup_sandbox(tags)

username = "test_user"
email = "[email protected]"

user = User.upsert(username, email)
user = Skate.Factory.insert(:user)
resource = %{id: user.id}

{conn, user} =
Expand Down

0 comments on commit cca18ea

Please sign in to comment.