mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Update test to be whitespace insensitive
This commit is contained in:
parent
8be066a7fe
commit
6569efcdbe
3 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ defmodule PhilomenaWeb.ConfirmationControllerTest do
|
|||
test "renders the confirmation page", %{conn: conn} do
|
||||
conn = get(conn, ~p"/confirmations/new")
|
||||
response = html_response(conn, 200)
|
||||
assert response =~ "<h1>Resend confirmation instructions</h1>"
|
||||
assert response =~ "Resend confirmation instructions"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@ defmodule PhilomenaWeb.SessionControllerTest do
|
|||
conn = get(conn, "/registrations/edit")
|
||||
response = html_response(conn, 200)
|
||||
assert response =~ user.email
|
||||
assert response =~ "Settings</a>"
|
||||
assert response =~ "Logout</a>"
|
||||
assert response =~ "Settings"
|
||||
assert response =~ "Logout"
|
||||
end
|
||||
|
||||
test "logs the user in with remember me", %{conn: conn, user: user} do
|
||||
|
|
|
@ -14,7 +14,7 @@ defmodule PhilomenaWeb.UnlockControllerTest do
|
|||
test "renders the unlock page", %{conn: conn} do
|
||||
conn = get(conn, ~p"/unlocks/new")
|
||||
response = html_response(conn, 200)
|
||||
assert response =~ "<h1>Resend unlock instructions</h1>"
|
||||
assert response =~ "Resend unlock instructions"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue