From e1fd4eceb0b22246b09e3abac2e71201211656cc Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Fri, 23 Aug 2024 11:42:19 -0700 Subject: [PATCH] fixed tests --- lib/pinchflat_web/controllers/error_html/500.html.heex | 6 +++--- test/pinchflat_web/controllers/error_html_test.exs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/pinchflat_web/controllers/error_html/500.html.heex b/lib/pinchflat_web/controllers/error_html/500.html.heex index 1134520..6d34195 100644 --- a/lib/pinchflat_web/controllers/error_html/500.html.heex +++ b/lib/pinchflat_web/controllers/error_html/500.html.heex @@ -16,14 +16,14 @@ diff --git a/test/pinchflat_web/controllers/error_html_test.exs b/test/pinchflat_web/controllers/error_html_test.exs index d9baab3..89bb46a 100644 --- a/test/pinchflat_web/controllers/error_html_test.exs +++ b/test/pinchflat_web/controllers/error_html_test.exs @@ -5,10 +5,10 @@ defmodule PinchflatWeb.ErrorHTMLTest do import Phoenix.Template test "renders 404.html" do - assert render_to_string(PinchflatWeb.ErrorHTML, "404", "html", []) == "Not Found" + assert render_to_string(PinchflatWeb.ErrorHTML, "404", "html", []) =~ "404 (not found)" end test "renders 500.html" do - assert render_to_string(PinchflatWeb.ErrorHTML, "500", "html", []) == "Internal Server Error" + assert render_to_string(PinchflatWeb.ErrorHTML, "500", "html", []) =~ "Internal Server Error" end end