1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-23 08:22:50 +00:00
mobilizon/test/eventos_web/views/error_view_test.exs
Thomas Citharel 979aad5acb Remove credo and use mix format, and lint everything
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-07-27 10:45:35 +02:00

18 lines
550 B
Elixir

defmodule EventosWeb.ErrorViewTest do
use EventosWeb.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(EventosWeb.ErrorView, "404.html", []) == "Page not found"
end
test "render 500.html" do
assert render_to_string(EventosWeb.ErrorView, "500.html", []) == "Internal server error"
end
test "render any other" do
assert render_to_string(EventosWeb.ErrorView, "505.html", []) == "Internal server error"
end
end