mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Update test to be whitespace insensitive
This commit is contained in:
parent
79583e8b01
commit
4aab96c992
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
|
test "renders the confirmation page", %{conn: conn} do
|
||||||
conn = get(conn, ~p"/confirmations/new")
|
conn = get(conn, ~p"/confirmations/new")
|
||||||
response = html_response(conn, 200)
|
response = html_response(conn, 200)
|
||||||
assert response =~ "<h1>Resend confirmation instructions</h1>"
|
assert response =~ "Resend confirmation instructions"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,8 @@ defmodule PhilomenaWeb.SessionControllerTest do
|
||||||
conn = get(conn, "/registrations/edit")
|
conn = get(conn, "/registrations/edit")
|
||||||
response = html_response(conn, 200)
|
response = html_response(conn, 200)
|
||||||
assert response =~ user.email
|
assert response =~ user.email
|
||||||
assert response =~ "Settings</a>"
|
assert response =~ "Settings"
|
||||||
assert response =~ "Logout</a>"
|
assert response =~ "Logout"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "logs the user in with remember me", %{conn: conn, user: user} do
|
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
|
test "renders the unlock page", %{conn: conn} do
|
||||||
conn = get(conn, ~p"/unlocks/new")
|
conn = get(conn, ~p"/unlocks/new")
|
||||||
response = html_response(conn, 200)
|
response = html_response(conn, 200)
|
||||||
assert response =~ "<h1>Resend unlock instructions</h1>"
|
assert response =~ "Resend unlock instructions"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue