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 4, 2024
1 parent 850872a commit 6d073ae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/support/conn_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,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} =
Expand Down

0 comments on commit 6d073ae

Please sign in to comment.