Add spec for releases by discid.
This commit is contained in:
parent
c65b270799
commit
97b0c50073
|
@ -35,4 +35,12 @@ describe MusicBrainz::Release do
|
||||||
tracks.first.title.should == "Empire"
|
tracks.first.title.should == "Empire"
|
||||||
tracks.first.length.should == 233013
|
tracks.first.length.should == 233013
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "gets a list of matching releases for a discid" do
|
||||||
|
releases = MusicBrainz::Release.find_by_discid("pmzhT6ZlFiwSRCdVwV0eqire5_Y-")
|
||||||
|
releases.length.should == 2
|
||||||
|
releases.first.id.should == "7a31cd5f-6a57-4fca-a731-c521df1d3b78"
|
||||||
|
releases.first.title.should == "Kveikur"
|
||||||
|
releases.first.asin.should == "B00C1GBOU6"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue