Files
anonbb/test/anonbb_web/views/error_view_test.exs
Alek Ratzloff fe85447557 Initial commit
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2019-10-09 08:59:53 -04:00

15 lines
413 B
Elixir

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