diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-04-30 18:19:51 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-04-30 18:19:51 +0300 |
commit | 2c4844237f294d27f58737f9694f77b1cfcb10e7 (patch) | |
tree | e6c3b4eef691c5559ed32676bc9e3a955649990d /test/plugs/ensure_authenticated_plug_test.exs | |
parent | 4c4344b7b17a2ddb1c597b059e0a7dcc043e02b2 (diff) | |
download | pleroma-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.exs | 4 |
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 |