Files
elixirAI/test/elixir_ai_web/controllers/error_html_test.exs
Alex Mickelson 0fd243d259
Some checks failed
CI/CD Pipeline / build (push) Failing after 3s
disable external connections while testing with mimix
2026-03-13 15:21:06 -06:00

15 lines
419 B
Elixir

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