Renamte LastFm.Feed.all/0 to LastFm.Feed.all_tracks/0
This commit is contained in:
+2
-2
@@ -23,8 +23,8 @@ defmodule LastFm.Feed do
|
||||
Phoenix.PubSub.broadcast(LastFm.PubSub, "feed:update", %{tracks: tracks})
|
||||
end
|
||||
|
||||
@spec all() :: [LastFm.Track.t()]
|
||||
def all do
|
||||
@spec all_tracks() :: [LastFm.Track.t()]
|
||||
def all_tracks do
|
||||
m = [
|
||||
{
|
||||
{:_, :_},
|
||||
|
||||
@@ -18,7 +18,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do
|
||||
|
||||
latest_record = Collection.get_latest_record!()
|
||||
|
||||
recent_tracks = LastFm.Feed.all()
|
||||
recent_tracks = LastFm.Feed.all_tracks()
|
||||
|
||||
release_ids = release_ids(recent_tracks)
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ defmodule LastFm.FeedTest do
|
||||
|
||||
test "it returns tracks in descending order of scrobble" do
|
||||
:ok = Feed.update([@track_two, @track_one])
|
||||
assert [@track_two, @track_one] == Feed.all()
|
||||
assert [@track_two, @track_one] == Feed.all_tracks()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user