1
0
Fork 0

Add spec for releases by discid.

This commit is contained in:
Dan Barber 2014-01-13 10:52:27 +00:00
parent c65b270799
commit 97b0c50073
1 changed files with 8 additions and 0 deletions

View File

@ -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