Created an Elixir PHoenix web framework application project

This commit is contained in:
Alex Tavarez
2025-07-22 16:45:51 -04:00
commit ad270e2490
45 changed files with 2593 additions and 0 deletions

View File

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