fix module aliasing issues
This commit is contained in:
@@ -15,6 +15,9 @@ defmodule FirehoseWeb.ConnCase do
|
||||
this option is not recommended for other databases.
|
||||
"""
|
||||
|
||||
alias Firehose.Accounts.Scope
|
||||
alias Firehose.AccountsFixtures
|
||||
|
||||
use ExUnit.CaseTemplate
|
||||
|
||||
using do
|
||||
@@ -45,8 +48,8 @@ defmodule FirehoseWeb.ConnCase do
|
||||
test context.
|
||||
"""
|
||||
def register_and_log_in_user(%{conn: conn} = context) do
|
||||
user = Firehose.AccountsFixtures.user_fixture()
|
||||
scope = Firehose.Accounts.Scope.for_user(user)
|
||||
user = AccountsFixtures.user_fixture()
|
||||
scope = Scope.for_user(user)
|
||||
|
||||
opts =
|
||||
context
|
||||
@@ -74,6 +77,6 @@ defmodule FirehoseWeb.ConnCase do
|
||||
defp maybe_set_token_authenticated_at(_token, nil), do: nil
|
||||
|
||||
defp maybe_set_token_authenticated_at(token, authenticated_at) do
|
||||
Firehose.AccountsFixtures.override_token_authenticated_at(token, authenticated_at)
|
||||
AccountsFixtures.override_token_authenticated_at(token, authenticated_at)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user