diff --git a/test/towerops_web/controllers/health_controller_test.exs b/test/towerops_web/controllers/health_controller_test.exs new file mode 100644 index 00000000..edc72edd --- /dev/null +++ b/test/towerops_web/controllers/health_controller_test.exs @@ -0,0 +1,11 @@ +defmodule ToweropsWeb.HealthControllerTest do + use ToweropsWeb.ConnCase, async: true + + describe "GET /health" do + test "returns ok", %{conn: conn} do + conn = get(conn, ~p"/health") + assert response(conn, 200) == "ok" + assert get_resp_header(conn, "content-type") == ["text/plain; charset=utf-8"] + end + end +end