error_view_test.exs 433 B

1234567891011121314
  1. defmodule FourlettersWeb.ErrorViewTest do
  2. use FourlettersWeb.ConnCase, async: true
  3. # Bring render/3 and render_to_string/3 for testing custom views
  4. import Phoenix.View
  5. test "renders 404.html" do
  6. assert render_to_string(FourlettersWeb.ErrorView, "404.html", []) == "Not Found"
  7. end
  8. test "renders 500.html" do
  9. assert render_to_string(FourlettersWeb.ErrorView, "500.html", []) == "Internal Server Error"
  10. end
  11. end