spec/requests/artist_spec.rb in musicbrainz-0.6.0 vs spec/requests/artist_spec.rb in musicbrainz-0.7.0

- old
+ new

@@ -1,5 +1,7 @@ +# -*- encoding: utf-8 -*- + require "spec_helper" describe MusicBrainz::Artist do it "gets no exception while loading artist info" do lambda { @@ -19,11 +21,11 @@ end 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 artist = MusicBrainz::Artist.find_by_name('Kasabian') artist.id.should == "69b39eab-6577-46a4-a9f5-817839092033" @@ -33,10 +35,10 @@ artist = MusicBrainz::Artist.find_by_name('Kasabian') artist.id.should == "69b39eab-6577-46a4-a9f5-817839092033" 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 release_groups = MusicBrainz::Artist.find_by_name('Kasabian').release_groups release_groups.length.should be >= 16