Files
archived-hipudding-teslamate/test/teslamate_web/views/error_view_test.exs
Adrian Kumpf 76208a456c Rename otp app
2019-04-07 13:42:51 +02:00

15 lines
425 B
Elixir

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