punndit_youtube 0.0.9.1 → 0.0.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module PunnditYoutube
2
- VERSION = "0.0.9.1"
2
+ VERSION = "0.0.9.2"
3
3
  end
@@ -1,13 +1,13 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe PunnditYoutube do
4
- it "should find video" do
4
+ it "should find single video information" do
5
5
  client = TestClient.new
6
6
  video = client.should_find_video("9OEYK60naug")
7
7
  video.title.should_not be_empty
8
8
  end
9
9
 
10
- it "should find playlist" do
10
+ it "should find playlist information" do
11
11
  client = TestClient.new
12
12
  playlist = client.should_find_playlist("PLcVJOCiw9dSygpwuY-s--czq5YGqGrbIY")
13
13
  playlist.title.should_not be_empty
@@ -25,4 +25,21 @@ describe PunnditYoutube do
25
25
  user.videos.should_not be_empty
26
26
  end
27
27
 
28
+ it "should find playlist information for all playlists" do
29
+ client = PunnditYoutube::Client.new
30
+ user = client.get_playlists("punndit")
31
+
32
+ user.playlists.each do |p|
33
+ puts p.id
34
+ playlist = client.playlist(p.id)
35
+ playlist.title.should_not be_empty
36
+
37
+ playlist.videos.each do |v|
38
+ v.title.should_not be_empty
39
+ end
40
+ end
41
+
42
+
43
+ end
44
+
28
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punndit_youtube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.1
4
+ version: 0.0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: