From: href Date: Wed, 19 Dec 2018 19:14:33 +0000 (+0100) Subject: daaa8cd6 take two X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=adbb265fc6559c0f93c369b6adde94e9eb92f3c9;p=akkoma daaa8cd6 take two --- diff --git a/test/plugs/set_user_session_id_plug_test.exs b/test/plugs/set_user_session_id_plug_test.exs index a5fdd4146..7cf8e42cc 100644 --- a/test/plugs/set_user_session_id_plug_test.exs +++ b/test/plugs/set_user_session_id_plug_test.exs @@ -1,8 +1,6 @@ defmodule Pleroma.Plugs.SetUserSessionIdPlugTest do use Pleroma.Web.ConnCase, async: true - Code.ensure_compiled(Pleroma.User) - alias Pleroma.Plugs.SetUserSessionIdPlug alias Pleroma.User @@ -30,6 +28,8 @@ defmodule Pleroma.Plugs.SetUserSessionIdPlugTest do end 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 |> assign(:user, %User{id: 1})