From 160007cab135c255c2dd3a84811401588df5c20e Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 13 Jan 2026 07:39:28 -0600 Subject: [PATCH] =?UTF-8?q?Add=20HealthController=20test=20(0%=20=E2=86=92?= =?UTF-8?q?=20100%)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controllers/health_controller_test.exs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/towerops_web/controllers/health_controller_test.exs 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