Packages

Yacco (Yet another calendar converter) is an ELixir/Phoenix application that allows the conversion of calendar dates of the calendars contained in the packages Calixir and Calendars.

Current section

Files

Jump to
yacco test yacco_web views error_view_test.exs
Raw

test/yacco_web/views/error_view_test.exs

defmodule YaccoWeb.ErrorViewTest do
use YaccoWeb.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(YaccoWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
assert render_to_string(YaccoWeb.ErrorView, "500.html", []) == "Internal Server Error"
end
end