thetvdb_mapper 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ede54fbc1b8f301492dffe4b0e4cf437aa2dff18
|
4
|
+
data.tar.gz: 4fa1c97f5dfc76c201de14b546dcc8e8f6f8c7a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5160079ad7df3fb5783774d05f06e3626b736dd6fed7701628700177caed4f447c48c52f840db6f1bf278ed80fa8440de2a83f4273e4c6ce0a60d4896ea029c8
|
7
|
+
data.tar.gz: f0d4b7e8460b0cfaf0ae5f39b911b11bb4ce3ec18bb825da003a3869269d33bfbb719b6b3e26d65798acba5e0af5aef729a9104bfb5852c4cc5c2f5e132cf7ee
|
@@ -5,8 +5,8 @@ class ThetvdbMapper::Mapping::Banner < ThetvdbMapper::Mapping::Base
|
|
5
5
|
'BannerPath' => :path,
|
6
6
|
'ThumbnailPath' => :thumbnail_path,
|
7
7
|
'VignettePath' => :vignette_path,
|
8
|
-
'BannerType' => :
|
9
|
-
'BannerType2' => :
|
8
|
+
'BannerType' => :kind,
|
9
|
+
'BannerType2' => :kind2,
|
10
10
|
'Language' => :language,
|
11
11
|
'Season' => :season,
|
12
12
|
'Rating' => :rating,
|
@@ -5,7 +5,7 @@ describe ThetvdbMapper::Mapping::Banner do
|
|
5
5
|
|
6
6
|
describe '#map' do
|
7
7
|
it 'should return specific keys' do
|
8
|
-
model.map.keys.sort.should == [:path, :thumbnail_path, :vignette_path, :
|
8
|
+
model.map.keys.sort.should == [:path, :thumbnail_path, :vignette_path, :kind, :kind2, :language, :season,
|
9
9
|
:rating, :rating_count, :series_name, :colors, :id].sort
|
10
10
|
end
|
11
11
|
|
@@ -31,12 +31,12 @@ describe ThetvdbMapper::Mapping::Banner do
|
|
31
31
|
|
32
32
|
it 'should map BannerType' do
|
33
33
|
model.stub(:data).and_return('BannerType' => 'test')
|
34
|
-
model.map[:
|
34
|
+
model.map[:kind].should == 'test'
|
35
35
|
end
|
36
36
|
|
37
37
|
it 'should map BannerType2' do
|
38
38
|
model.stub(:data).and_return('BannerType2' => 'test')
|
39
|
-
model.map[:
|
39
|
+
model.map[:kind2].should == 'test'
|
40
40
|
end
|
41
41
|
|
42
42
|
it 'should map Language' do
|
@@ -20,11 +20,11 @@ describe ThetvdbMapper::Mapping::Banner do
|
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'should map BannerType' do
|
23
|
-
model.rules['BannerType'].should == :
|
23
|
+
model.rules['BannerType'].should == :kind
|
24
24
|
end
|
25
25
|
|
26
26
|
it 'should map BannerType2' do
|
27
|
-
model.rules['BannerType2'].should == :
|
27
|
+
model.rules['BannerType2'].should == :kind2
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'should map Language' do
|