projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daaa8cd
)
daaa8cd6 take two
author
href
<href@random.sh>
Wed, 19 Dec 2018 19:14:33 +0000
(20:14 +0100)
committer
href
<href@random.sh>
Wed, 19 Dec 2018 19:14:33 +0000
(20:14 +0100)
test/plugs/set_user_session_id_plug_test.exs
patch
|
blob
|
history
diff --git
a/test/plugs/set_user_session_id_plug_test.exs
b/test/plugs/set_user_session_id_plug_test.exs
index a5fdd4146d52de5ab39e7a1b0f1a3aaf6ede2d8f..7cf8e42cc865534dbfefb0e18f9e9e8c7c523f03 100644
(file)
--- 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})