spec/integration_spec.rb in jberkel-spotify-api-0.0.2 vs spec/integration_spec.rb in jberkel-spotify-api-0.0.3

- old
+ new

@@ -28,6 +28,27 @@ most_popular.name.should == 'Moon Safari' most_popular.artist.name.should == 'Air' end end + + describe "playlists" do + + before do + @playlists = @jotify.playlists + @playlists.should_not be_empty + end + + it "should return name and id, not tracks (GH-3)" do + @playlists.each do |pl| + puts pl.inspect + pl.name.should_not be_nil + + pl.tracks.each do |t| + t.getId().should_not be_nil + t.getName().should be_nil + end + end + end + end + end \ No newline at end of file