Refactoring of :if_func / :unless_func plug options (general availability). Added tests for Pleroma.Web.Plug.

This commit is contained in:
Ivan Tashkinov 2020-04-30 18:19:51 +03:00
commit 2c4844237f
9 changed files with 109 additions and 24 deletions

View file

@ -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