Include artists in record test fixture
This commit is contained in:
@@ -41,7 +41,7 @@ defmodule MusicLibraryWeb.StatsControllerTest do
|
||||
assert html_response(conn, 200) =~ escape(latest_record.title)
|
||||
|
||||
for artist <- latest_record.artists do
|
||||
assert html_response(conn, 200) =~ escape(artist["name"])
|
||||
assert html_response(conn, 200) =~ escape(artist.name)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user