An example AT Protocol application, written in Elixir using atex and Drinkup.
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 15 lines 472 B view raw
1defmodule StatusphereWeb.ErrorHTMLTest do 2 use StatusphereWeb.ConnCase, async: true 3 4 # Bring render_to_string/4 for testing custom views 5 import Phoenix.Template, only: [render_to_string: 4] 6 7 test "renders 404.html" do 8 assert render_to_string(StatusphereWeb.ErrorHTML, "404", "html", []) == "Not Found" 9 end 10 11 test "renders 500.html" do 12 assert render_to_string(StatusphereWeb.ErrorHTML, "500", "html", []) == 13 "Internal Server Error" 14 end 15end