mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-05-15 15:52:42 +00:00
15 lines
422 B
Elixir
15 lines
422 B
Elixir
defmodule LiveBeatsWeb.ErrorViewTest do
|
|
use LiveBeatsWeb.ConnCase, async: true
|
|
|
|
# Bring render_to_string/3 for testing custom views
|
|
import Phoenix.Template
|
|
|
|
test "renders 404.html" do
|
|
assert render_to_string(LiveBeatsWeb.ErrorHTML, "404", "html", []) == "Not Found"
|
|
end
|
|
|
|
test "renders 500.html" do
|
|
assert render_to_string(LiveBeatsWeb.ErrorHTML, "500", "html", []) == "Internal Server Error"
|
|
end
|
|
end
|