This commit is contained in:
href 2018-12-19 20:14:33 +01:00
parent daaa8cd66a
commit adbb265fc6
No known key found for this signature in database
GPG Key ID: EE8296C1A152C325

View File

@ -1,8 +1,6 @@
defmodule Pleroma.Plugs.SetUserSessionIdPlugTest do defmodule Pleroma.Plugs.SetUserSessionIdPlugTest do
use Pleroma.Web.ConnCase, async: true use Pleroma.Web.ConnCase, async: true
Code.ensure_compiled(Pleroma.User)
alias Pleroma.Plugs.SetUserSessionIdPlug alias Pleroma.Plugs.SetUserSessionIdPlug
alias Pleroma.User alias Pleroma.User
@ -30,6 +28,8 @@ defmodule Pleroma.Plugs.SetUserSessionIdPlugTest do
end end
test "sets the user_id in the session to the user id of the user assign", %{conn: conn} do test "sets the user_id in the session to the user id of the user assign", %{conn: conn} do
Code.ensure_compiled(Pleroma.User)
conn = conn =
conn conn
|> assign(:user, %User{id: 1}) |> assign(:user, %User{id: 1})