An example AT Protocol application, written in Elixir using atex and Drinkup.
at main 12 lines 370 B view raw
1defmodule StatusphereWeb.ErrorJSONTest do 2 use StatusphereWeb.ConnCase, async: true 3 4 test "renders 404" do 5 assert StatusphereWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}} 6 end 7 8 test "renders 500" do 9 assert StatusphereWeb.ErrorJSON.render("500.json", %{}) == 10 %{errors: %{detail: "Internal Server Error"}} 11 end 12end