summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_utils_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-05-26 16:00:59 +0200
committerlain <lain@soykaf.club>2018-05-26 16:00:59 +0200
commit4b3ec5351466f8615b32e62cc4e6215f8a80b105 (patch)
treee46842eac5d8255858a113f71bdf42bfd75e4436 /test/web/common_api/common_api_utils_test.exs
parent4fd9df100f61dfe4731934eca86500472d866f60 (diff)
parent6138b297836f459e4fe5d21dfed30ddd9397b6d4 (diff)
downloadpleroma-4b3ec5351466f8615b32e62cc4e6215f8a80b105.tar.gz
pleroma-4b3ec5351466f8615b32e62cc4e6215f8a80b105.zip
Merge branch 'develop' into csaurus/pleroma-feature/mstdn-direct-api
Diffstat (limited to 'test/web/common_api/common_api_utils_test.exs')
-rw-r--r--test/web/common_api/common_api_utils_test.exs5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/web/common_api/common_api_utils_test.exs b/test/web/common_api/common_api_utils_test.exs
index 23cce471f..f39472ee3 100644
--- a/test/web/common_api/common_api_utils_test.exs
+++ b/test/web/common_api/common_api_utils_test.exs
@@ -21,13 +21,12 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
test "incorrect password given" do
{:ok, user} = UserBuilder.insert()
- assert Utils.confirm_current_password(user, %{"password" => ""}) ==
- {:error, "Invalid password."}
+ assert Utils.confirm_current_password(user, "") == {:error, "Invalid password."}
end
test "correct password given" do
{:ok, user} = UserBuilder.insert()
- assert Utils.confirm_current_password(user, %{"password" => "test"}) == {:ok, user}
+ assert Utils.confirm_current_password(user, "test") == {:ok, user}
end
end
end