Files
pinchflat/test/pinchflat_web/controllers/error_html_test.exs
T
Kieran Eglin 1455cee3af Initial commit 🎉
2024-01-18 20:32:01 -08:00

15 lines
422 B
Elixir

defmodule PinchflatWeb.ErrorHTMLTest do
use PinchflatWeb.ConnCase, async: true
# Bring render_to_string/4 for testing custom views
import Phoenix.Template
test "renders 404.html" do
assert render_to_string(PinchflatWeb.ErrorHTML, "404", "html", []) == "Not Found"
end
test "renders 500.html" do
assert render_to_string(PinchflatWeb.ErrorHTML, "500", "html", []) == "Internal Server Error"
end
end