test/test_artist.rb in meta-spotify-0.1.1 vs test/test_artist.rb in meta-spotify-0.1.2

- old
+ new

@@ -36,6 +36,20 @@ assert_raises MetaSpotify::URIError do MetaSpotify::Artist.lookup(ALBUM_URI) end end end + + context "looking up an artist with detailed album information" do + setup do + FakeWeb.register_uri(:get, + "http://ws.spotify.com/lookup/1/?extras=albumdetail&uri=#{CGI.escape(ARTIST_URI)}", + :body => fixture_file("artist_with_albumdetail.xml")) + @result = MetaSpotify::Artist.lookup(ARTIST_URI, :extras => 'albumdetail') + end + should "fetch an artist and return an artist object with detailed album information" do + assert_kind_of MetaSpotify::Artist, @result + assert_kind_of MetaSpotify::Album, @result.albums.first + assert_equal "Jaxx Unreleased", @result.albums.first.name + end + end end \ No newline at end of file