diff options
| author | Syldexia <syldexia@ofthewi.red> | 2018-05-21 22:32:28 +0100 | 
|---|---|---|
| committer | Syldexia <syldexia@ofthewi.red> | 2018-05-21 23:06:03 +0100 | 
| commit | 69aa7c213a8aa1dfa54dbcfdab0c4b10ec415df8 (patch) | |
| tree | 08eff5e68f208a6e7e8450969c03d6deda06a514 | |
| parent | d0690622cdb885005444848a7db34bf89151e803 (diff) | |
| download | pleroma-69aa7c213a8aa1dfa54dbcfdab0c4b10ec415df8.tar.gz pleroma-69aa7c213a8aa1dfa54dbcfdab0c4b10ec415df8.zip | |
Fixed test
| -rw-r--r-- | test/web/common_api/common_api_utils_test.exs | 5 | 
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 | 
