Rename RecordsFixtures -> Fixtures.Records
This commit is contained in:
@@ -3,7 +3,7 @@ defmodule MusicLibrary.ArtistsTest do
|
||||
|
||||
alias MusicLibrary.Artists
|
||||
alias LastFm.APIBehaviourMock
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
import LastFm.Fixtures.Artist
|
||||
import Mox
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ defmodule MusicLibrary.CollectionTest do
|
||||
use MusicLibrary.DataCase
|
||||
|
||||
alias MusicLibrary.Collection
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
|
||||
defp fill_collection(_) do
|
||||
# Purchased dates are in ascending order
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
defmodule MusicLibrary.Records.CoverTest do
|
||||
use ExUnit.Case, async: true
|
||||
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
|
||||
describe "resize/1" do
|
||||
test "it resizes to the desired size" do
|
||||
|
||||
@@ -4,7 +4,7 @@ defmodule MusicLibrary.RecordsTest do
|
||||
alias MusicLibrary.Records
|
||||
alias MusicLibrary.Records.SearchIndex
|
||||
alias MusicBrainz.APIBehaviourMock
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
import MusicLibrary.Fixtures.ReleaseGroup
|
||||
import MusicBrainz.Fixtures.Release
|
||||
import Mox
|
||||
|
||||
@@ -2,7 +2,7 @@ defmodule MusicLibrary.WishlistTest do
|
||||
use MusicLibrary.DataCase
|
||||
|
||||
alias MusicLibrary.Wishlist
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
|
||||
defp fill_wishlist(_) do
|
||||
records = [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
defmodule MusicLibraryWeb.CollectionControllerTest do
|
||||
use MusicLibraryWeb.ConnCase
|
||||
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
|
||||
defp create_record(_) do
|
||||
%{record: record_with_artist("Steven Wilson")}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
defmodule MusicLibraryWeb.CoverControllerTest do
|
||||
use MusicLibraryWeb.ConnCase
|
||||
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
alias MusicLibrary.Records.Cover
|
||||
|
||||
defp create_record(_) do
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
defmodule MusicLibraryWeb.ArtistLive.ShowTest do
|
||||
use MusicLibraryWeb.ConnCase
|
||||
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
import LastFm.Fixtures.Artist
|
||||
import Mox
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
defmodule MusicLibraryWeb.CollectionLive.IndexTest do
|
||||
use MusicLibraryWeb.ConnCase
|
||||
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
import MusicLibrary.Fixtures.ReleaseGroup
|
||||
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
|
||||
import Mox
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
defmodule MusicLibraryWeb.CollectionLive.ShowTest do
|
||||
use MusicLibraryWeb.ConnCase
|
||||
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
|
||||
alias MusicLibrary.Records.Record
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ defmodule MusicLibraryWeb.StatsLive.IndexTest do
|
||||
alias MusicLibrary.{Records, Repo, Wishlist}
|
||||
alias MusicBrainz.APIBehaviourMock
|
||||
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
import MusicLibrary.Fixtures.ReleaseGroup
|
||||
import MusicBrainz.Fixtures.Release
|
||||
import Mox
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
defmodule MusicLibraryWeb.WishlistLive.IndexTest do
|
||||
use MusicLibraryWeb.ConnCase
|
||||
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
|
||||
defp fill_wishlist(_) do
|
||||
records = Enum.map(1..5, fn _ -> record(%{purchased_at: nil}) end)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
defmodule MusicLibraryWeb.WishlistLive.ShowTest do
|
||||
use MusicLibraryWeb.ConnCase
|
||||
|
||||
import MusicLibrary.RecordsFixtures
|
||||
import MusicLibrary.Fixtures.Records
|
||||
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
|
||||
alias MusicLibrary.Records.Record
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
+1
-1
@@ -1,4 +1,4 @@
|
||||
defmodule MusicLibrary.RecordsFixtures do
|
||||
defmodule MusicLibrary.Fixtures.Records do
|
||||
@moduledoc """
|
||||
This module defines test helpers for creating
|
||||
entities via the `MusicLibrary.Records` context.
|
||||
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Reference in New Issue
Block a user