livebook/test/livebook_web/controllers/errors_test.exs

11 lines
250 B
Elixir
Raw Normal View History

2023-03-26 04:52:18 +08:00
defmodule LivebookWeb.ErrorsTest do
use LivebookWeb.ConnCase, async: true
test "renders 404", %{conn: conn} do
2023-06-20 23:33:38 +08:00
conn = get(conn, "/this/does/not/exist")
2023-03-26 04:52:18 +08:00
2023-06-20 23:33:38 +08:00
assert conn.status == 404
assert conn.resp_body =~ "No Numbats here!"
2023-03-26 04:52:18 +08:00
end
end