test/test_artist.rb in meta-spotify-0.3.0 vs test/test_artist.rb in meta-spotify-0.3.1

- old
+ new

@@ -29,11 +29,11 @@ end end context "a single result" do setup do FakeWeb.register_uri(:get, - "http://ws.spotify.com/search/1/artist?q=1200%20Micrograms", + "http://ws.spotify.com/search/1/artist?q=1200+Micrograms", :body => fixture_file("artist_search_one_result.xml")) @results = MetaSpotify::Artist.search('1200 Micrograms') end should "still return a list of results, for consistency" do assert_kind_of Array, @results[:artists] @@ -54,11 +54,11 @@ assert_equal 0, @results[:start_index] assert_equal 1, @results[:total_results] end end end - + context "looking up an artist" do setup do FakeWeb.register_uri(:get, "http://ws.spotify.com/lookup/1/?uri=#{CGI.escape(ARTIST_URI)}", :body => fixture_file("artist.xml")) @@ -73,10 +73,10 @@ 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")) \ No newline at end of file