Refactoring Artist model

This commit is contained in:
Gregory Eremin
2012-07-08 23:46:09 +04:00
parent 23d27756b8
commit ab78050fec
10 changed files with 254 additions and 89 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ describe MusicBrainz::Artist do
it "finds name first than alias" do
matches = MusicBrainz::Artist.search('Chris Martin')
matches.length.should be > 0
matches.first[:name].should == "Chris Martin"
matches.first[:mbid].should == "af2ab893-3212-4226-9e73-73a1660b6952"
end
it "gets correct result by name" do
@@ -35,7 +35,7 @@ describe MusicBrainz::Artist do
artist.type.should == "Group"
artist.name.should == "Kasabian"
artist.country.should == "GB"
artist.date_begin.should == "1999"
artist.date_begin.year.should == 1999
end
it "gets correct artist's release groups" do