From 9e29de55aac6967faa13a4c35dcb52891839d904 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sun, 19 Apr 2026 22:47:31 +0100 Subject: [PATCH] Pin online_store_templates delete assertion Assert deleted.id == template.id rather than wildcard-matching the returned struct. Refs #176 --- test/music_library/online_store_templates_test.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/music_library/online_store_templates_test.exs b/test/music_library/online_store_templates_test.exs index 7a236311..bd7f85ff 100644 --- a/test/music_library/online_store_templates_test.exs +++ b/test/music_library/online_store_templates_test.exs @@ -113,7 +113,8 @@ defmodule MusicLibrary.OnlineStoreTemplatesTest do describe "delete_template/1" do test "deletes the template" do template = online_store_template() - assert {:ok, _} = OnlineStoreTemplates.delete_template(template) + assert {:ok, deleted} = OnlineStoreTemplates.delete_template(template) + assert deleted.id == template.id assert_raise Ecto.NoResultsError, fn -> OnlineStoreTemplates.get_template!(template.id) end end end