projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: update obsolete test
[akkoma]
/
test
/
plugs
/
set_user_session_id_plug_test.exs
diff --git
a/test/plugs/set_user_session_id_plug_test.exs
b/test/plugs/set_user_session_id_plug_test.exs
index 5edc0dab8f282b5035a16149b1f34a7f81c4c076..f8bfde0393ff31366dbef02428d04d7c7f6e8251 100644
(file)
--- a/
test/plugs/set_user_session_id_plug_test.exs
+++ b/
test/plugs/set_user_session_id_plug_test.exs
@@
-1,3
+1,7
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Plugs.SetUserSessionIdPlugTest do
use Pleroma.Web.ConnCase, async: true
defmodule Pleroma.Plugs.SetUserSessionIdPlugTest do
use Pleroma.Web.ConnCase, async: true
@@
-28,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
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})
conn =
conn
|> assign(:user, %User{id: 1})