sjunkieex 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sjunkieex/interface.rb +1 -1
- data/lib/sjunkieex/version.rb +1 -1
- data/test/seriesindex_example.xml +1 -0
- data/test/site_dumps/rizzoli_and_isles.html +1418 -0
- data/test/test_interface.rb +14 -1
- metadata +4 -2
data/test/test_interface.rb
CHANGED
@@ -42,7 +42,7 @@ class TestInterface < Test::Unit::TestCase
|
|
42
42
|
end
|
43
43
|
|
44
44
|
|
45
|
-
def
|
45
|
+
def test_parse_chase_series_page
|
46
46
|
interface = Sjunkieex::Interface.new(@series_index)
|
47
47
|
filename = File.dirname(__FILE__) + '/site_dumps/chase.html'
|
48
48
|
|
@@ -54,4 +54,17 @@ class TestInterface < Test::Unit::TestCase
|
|
54
54
|
assert_equal true, link_data["1_14"][:sd].include?(
|
55
55
|
"http://download.serienjunkies.org/f-ddc2985db78e3e7d/nl_tvp-chase-xv-114.html")
|
56
56
|
end
|
57
|
+
|
58
|
+
def test_parse_rizzoli_and_isles_series_page
|
59
|
+
interface = Sjunkieex::Interface.new(@series_index)
|
60
|
+
filename = File.dirname(__FILE__) + '/site_dumps/rizzoli_and_isles.html'
|
61
|
+
|
62
|
+
link_data = interface.parse_series_page("rizzoli and isles", filename)
|
63
|
+
assert_instance_of Hash, link_data
|
64
|
+
|
65
|
+
assert_equal 2, link_data.length
|
66
|
+
|
67
|
+
assert_equal true, link_data["2_5"][:sd].include?(
|
68
|
+
"http://download.serienjunkies.org/f-1b56a7d2fd115563/ry_rizz-xvid-S02E05.html")
|
69
|
+
end
|
57
70
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sjunkieex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- test/seriesindex_example.xml
|
66
66
|
- test/site_dumps/chase.html
|
67
67
|
- test/site_dumps/homepage.html
|
68
|
+
- test/site_dumps/rizzoli_and_isles.html
|
68
69
|
- test/test_helper.rb
|
69
70
|
- test/test_interface.rb
|
70
71
|
- test/test_series_index.rb
|
@@ -96,6 +97,7 @@ test_files:
|
|
96
97
|
- test/seriesindex_example.xml
|
97
98
|
- test/site_dumps/chase.html
|
98
99
|
- test/site_dumps/homepage.html
|
100
|
+
- test/site_dumps/rizzoli_and_isles.html
|
99
101
|
- test/test_helper.rb
|
100
102
|
- test/test_interface.rb
|
101
103
|
- test/test_series_index.rb
|