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