pass user reset password controller tests
This commit is contained in:
parent
961a7fd812
commit
c2346a0bb8
@ -34,8 +34,7 @@ defmodule CanneryWeb.UserResetPasswordControllerTest do
|
|||||||
assert get_flash(conn, :info) =~
|
assert get_flash(conn, :info) =~
|
||||||
dgettext(
|
dgettext(
|
||||||
"prompts",
|
"prompts",
|
||||||
"If your email is in our system and it has not been confirmed yet, " <>
|
"If your email is in our system, you will receive instructions to reset your password shortly."
|
||||||
"you will receive an email with instructions shortly."
|
|
||||||
)
|
)
|
||||||
|
|
||||||
assert Repo.get_by!(Accounts.UserToken, user_id: user.id).context == "reset_password"
|
assert Repo.get_by!(Accounts.UserToken, user_id: user.id).context == "reset_password"
|
||||||
@ -52,8 +51,7 @@ defmodule CanneryWeb.UserResetPasswordControllerTest do
|
|||||||
assert get_flash(conn, :info) =~
|
assert get_flash(conn, :info) =~
|
||||||
dgettext(
|
dgettext(
|
||||||
"prompts",
|
"prompts",
|
||||||
"If your email is in our system and it has not been confirmed yet, " <>
|
"If your email is in our system, you will receive instructions to reset your password shortly."
|
||||||
"you will receive an email with instructions shortly."
|
|
||||||
)
|
)
|
||||||
|
|
||||||
assert Repo.all(Accounts.UserToken) == []
|
assert Repo.all(Accounts.UserToken) == []
|
||||||
|
Loading…
Reference in New Issue
Block a user