1 defmodule TechRadarEditor.ErrorViewTest do
2 use TechRadarEditor.ConnCase, async: true
4 # Bring render/3 and render_to_string/3 for testing custom views
7 test "renders 404.html" do
8 assert render_to_string(TechRadarEditor.ErrorView, "404.html", []) ==
12 test "render 500.html" do
13 assert render_to_string(TechRadarEditor.ErrorView, "500.html", []) ==
14 "Internal server error"
17 test "render any other" do
18 assert render_to_string(TechRadarEditor.ErrorView, "505.html", []) ==
19 "Internal server error"