Change user.discoverable field to user.is_discoverable
[akkoma] / test / plugs / set_user_session_id_plug_test.exs
index a5fdd4146d52de5ab39e7a1b0f1a3aaf6ede2d8f..7f1a1e98bcdba313c8df7e9314ba3e943671a00a 100644 (file)
@@ -1,8 +1,10 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
 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 +32,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})