localspot/test/localspot_web/controllers/error_json_test.exs
Kevin Sivic 1e61383eb6 Initialize Phoenix LiveView project
Set up localspot as a Phoenix 1.8 LiveView application with:
- Erlang/Elixir via asdf
- PostgreSQL database (local user config)
- Tailwind CSS v4 with daisyUI
- Updated AGENTS.md with project setup and guidelines

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 21:45:50 -05:00

12 lines
362 B
Elixir

defmodule LocalspotWeb.ErrorJSONTest do
use LocalspotWeb.ConnCase, async: true
test "renders 404" do
assert LocalspotWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
end
test "renders 500" do
assert LocalspotWeb.ErrorJSON.render("500.json", %{}) ==
%{errors: %{detail: "Internal Server Error"}}
end
end