From 4aab96c99220209a9acc3688188eb0ccd3f293fc Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 4 May 2024 15:58:42 -0400 Subject: [PATCH] Update test to be whitespace insensitive --- .../controllers/confirmation_controller_test.exs | 2 +- test/philomena_web/controllers/session_controller_test.exs | 4 ++-- test/philomena_web/controllers/unlock_controller_test.exs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/philomena_web/controllers/confirmation_controller_test.exs b/test/philomena_web/controllers/confirmation_controller_test.exs index 049fd6d1..eb89dbb8 100644 --- a/test/philomena_web/controllers/confirmation_controller_test.exs +++ b/test/philomena_web/controllers/confirmation_controller_test.exs @@ -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 =~ "

Resend confirmation instructions

" + assert response =~ "Resend confirmation instructions" end end diff --git a/test/philomena_web/controllers/session_controller_test.exs b/test/philomena_web/controllers/session_controller_test.exs index 29d8d7f2..3361d387 100644 --- a/test/philomena_web/controllers/session_controller_test.exs +++ b/test/philomena_web/controllers/session_controller_test.exs @@ -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" - assert response =~ "Logout" + assert response =~ "Settings" + assert response =~ "Logout" end test "logs the user in with remember me", %{conn: conn, user: user} do diff --git a/test/philomena_web/controllers/unlock_controller_test.exs b/test/philomena_web/controllers/unlock_controller_test.exs index bc8df85e..7c30ef2b 100644 --- a/test/philomena_web/controllers/unlock_controller_test.exs +++ b/test/philomena_web/controllers/unlock_controller_test.exs @@ -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 =~ "

Resend unlock instructions

" + assert response =~ "Resend unlock instructions" end end