summaryrefslogtreecommitdiff
path: root/test/plugs/authentication_plug_test.exs
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2019-07-24 16:37:52 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2019-07-24 16:37:52 +0300
commitd2da3d30f3349946500423bab53e0c1221ab7b9b (patch)
tree338d2e3b0412a9be89a462173e367495c5e9ad40 /test/plugs/authentication_plug_test.exs
parentafc7708dbe00a70be616f00f01b22b0d01b9b61b (diff)
parent53fad36b57b61b28db595e445cd01fd6044dab6b (diff)
downloadpleroma-d2da3d30f3349946500423bab53e0c1221ab7b9b.tar.gz
pleroma-d2da3d30f3349946500423bab53e0c1221ab7b9b.zip
Merge branch 'develop' into feature/digest-email
Diffstat (limited to 'test/plugs/authentication_plug_test.exs')
-rw-r--r--test/plugs/authentication_plug_test.exs6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/plugs/authentication_plug_test.exs b/test/plugs/authentication_plug_test.exs
index 7ca045616..f7f8fd9f3 100644
--- a/test/plugs/authentication_plug_test.exs
+++ b/test/plugs/authentication_plug_test.exs
@@ -9,7 +9,6 @@ defmodule Pleroma.Plugs.AuthenticationPlugTest do
alias Pleroma.User
import ExUnit.CaptureLog
- import Mock
setup %{conn: conn} do
user = %User{
@@ -67,13 +66,12 @@ defmodule Pleroma.Plugs.AuthenticationPlugTest do
refute AuthenticationPlug.checkpw("test-password1", hash)
end
+ @tag :skip_on_mac
test "check sha512-crypt hash" do
hash =
"$6$9psBWV8gxkGOZWBz$PmfCycChoxeJ3GgGzwvhlgacb9mUoZ.KUXNCssekER4SJ7bOK53uXrHNb2e4i8yPFgSKyzaW9CcmrDXWIEMtD1"
- with_mock :crypt, crypt: fn _password, password_hash -> password_hash end do
- assert AuthenticationPlug.checkpw("password", hash)
- end
+ assert AuthenticationPlug.checkpw("password", hash)
end
test "it returns false when hash invalid" do