summaryrefslogtreecommitdiff
path: root/test/plugs/ensure_authenticated_plug_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-04-30 18:19:51 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-04-30 18:19:51 +0300
commit2c4844237f294d27f58737f9694f77b1cfcb10e7 (patch)
treee6c3b4eef691c5559ed32676bc9e3a955649990d /test/plugs/ensure_authenticated_plug_test.exs
parent4c4344b7b17a2ddb1c597b059e0a7dcc043e02b2 (diff)
downloadpleroma-2c4844237f294d27f58737f9694f77b1cfcb10e7.tar.gz
pleroma-2c4844237f294d27f58737f9694f77b1cfcb10e7.zip
Refactoring of :if_func / :unless_func plug options (general availability). Added tests for Pleroma.Web.Plug.
Diffstat (limited to 'test/plugs/ensure_authenticated_plug_test.exs')
-rw-r--r--test/plugs/ensure_authenticated_plug_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/plugs/ensure_authenticated_plug_test.exs b/test/plugs/ensure_authenticated_plug_test.exs
index 689fe757f..4e6142aab 100644
--- a/test/plugs/ensure_authenticated_plug_test.exs
+++ b/test/plugs/ensure_authenticated_plug_test.exs
@@ -27,8 +27,8 @@ defmodule Pleroma.Plugs.EnsureAuthenticatedPlugTest do
describe "with :if_func / :unless_func options" do
setup do
%{
- true_fn: fn -> true end,
- false_fn: fn -> false end
+ true_fn: fn _conn -> true end,
+ false_fn: fn _conn -> false end
}
end