Initial commit

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2019-10-09 08:59:53 -04:00
commit fe85447557
62 changed files with 7907 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
defmodule AnonbbWeb.ErrorViewTest do
use AnonbbWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(AnonbbWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
assert render_to_string(AnonbbWeb.ErrorView, "500.html", []) == "Internal Server Error"
end
end