aboutsummaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_utils_test.exs
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-05-24 17:16:37 +0000
committerlambda <pleromagit@rogerbraun.net>2018-05-24 17:16:37 +0000
commitc41012053a6eb3e190f8ae69ad26db184d3555d2 (patch)
tree8e270f16cf77bd4116a577192ceebb7cbac57d73 /test/web/common_api/common_api_utils_test.exs
parent1cd6194deeca32a96a31fc43c0ed27daadd65f64 (diff)
parent69aa7c213a8aa1dfa54dbcfdab0c4b10ec415df8 (diff)
downloadpleroma-c41012053a6eb3e190f8ae69ad26db184d3555d2.tar.gz
Merge branch 'feature/change-password' into 'develop'
Feature/change password See merge request pleroma/pleroma!166
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