punndit_youtube 0.0.9.1 → 0.0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/punndit_youtube/version.rb +1 -1
- data/spec/punndit_youtube_spec.rb +19 -2
- metadata +1 -1
@@ -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
|