From fc307a0abae8f43ce820631bce76d03512be3284 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 9 Feb 2026 11:12:02 +0000 Subject: [PATCH] Add tests for health controller --- .../controllers/health_controller_test.exs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/music_library_web/controllers/health_controller_test.exs diff --git a/test/music_library_web/controllers/health_controller_test.exs b/test/music_library_web/controllers/health_controller_test.exs new file mode 100644 index 00000000..23f93d7d --- /dev/null +++ b/test/music_library_web/controllers/health_controller_test.exs @@ -0,0 +1,12 @@ +defmodule MusicLibraryWeb.HealthControllerTest do + use MusicLibraryWeb.ConnCase + + describe "GET /health" do + @tag :logged_out + test "returns 200 with health message", %{conn: conn} do + conn = get(conn, "/health") + + assert html_response(conn, 200) =~ "App is running" + end + end +end