This commit is contained in:
Chocobozzz
2019-08-13 08:43:37 +02:00
committed by Thomas Citharel
parent ac1dab0fc0
commit a007160480
10 changed files with 85 additions and 93 deletions

View File

@@ -68,7 +68,7 @@ defmodule Mobilizon.UsersTest do
test "authenticate/1 checks the user's password" do
{:ok, %User{} = user} = Users.register(%{email: @email, password: @password})
assert {:ok, _, _} = Users.authenticate(%{user: user, password: @password})
assert {:ok, _} = Users.authenticate(%{user: user, password: @password})
assert {:error, :unauthorized} ==
Users.authenticate(%{user: user, password: "bad password"})