Include artists in record test fixture

This commit is contained in:
Claudio Ortolina
2024-10-10 09:21:35 +01:00
parent 10003c34f6
commit 1fdf36ea8a
4 changed files with 29 additions and 8 deletions
@@ -49,7 +49,7 @@ defmodule MusicLibraryWeb.RecordIndexTest do
assert record_row_html =~ ~p"/covers/#{record.id}?vsn=#{record.cover_hash}"
for artist <- record.artists do
assert record_row_html =~ escape(artist["name"])
assert record_row_html =~ escape(artist.name)
end
end
end
@@ -40,7 +40,7 @@ defmodule MusicLibraryWeb.RecordShowTest do
assert html =~ Phoenix.HTML.Safe.to_iodata(record.updated_at)
for artist <- record.artists do
assert html =~ escape(artist["name"])
assert html =~ escape(artist.name)
end
end
end