odeon_uk 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/odeon_uk/screening.rb +1 -0
- data/lib/odeon_uk/version.rb +2 -2
- data/test/lib/odeon_uk/screening_test.rb +35 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea3aeae6a45f951ac69b5399562663c2f264d59e
|
4
|
+
data.tar.gz: 066fbf41e0a2d9fa3099ff085501ce708f198642
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4372f457aa8132a9b0238abad6997a4f5b980729e6e504fe21c74ebddb71e022ec2670fb1534bbe6b0648d3e0132cbf679b26ee6e4c92a6d87371a197fed44c9
|
7
|
+
data.tar.gz: 5df2508b065b95de1f3997edb09fc906e6fe2da993c8cb6fafdca6a70593576631775c1c398a05e62f988dae68963b6439e0bb3eee05136eeabccb1efe4723e9
|
data/CHANGELOG.md
CHANGED
data/lib/odeon_uk/screening.rb
CHANGED
data/lib/odeon_uk/version.rb
CHANGED
@@ -52,22 +52,44 @@ describe OdeonUk::Screening do
|
|
52
52
|
describe '#variant' do
|
53
53
|
subject { described_class.new(options).variant }
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
55
|
+
describe 'passed array' do
|
56
|
+
let(:options) do
|
57
|
+
{
|
58
|
+
film_name: 'Guardians of the Galaxy',
|
59
|
+
cinema_id: 71,
|
60
|
+
cinema_name: 'Odeon Brighton',
|
61
|
+
time: Time.utc(2014, 9, 12, 11, 0),
|
62
|
+
variant: %w(Kids BABY)
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'is an alphabetically ordered array of lower-cased strings' do
|
67
|
+
subject.must_be_instance_of Array
|
68
|
+
subject.each do |tag|
|
69
|
+
tag.must_be_instance_of String
|
70
|
+
end
|
71
|
+
subject.must_equal %w(baby kids)
|
72
|
+
end
|
63
73
|
end
|
64
74
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
75
|
+
describe 'passed string' do
|
76
|
+
let(:options) do
|
77
|
+
{
|
78
|
+
film_name: 'Guardians of the Galaxy',
|
79
|
+
cinema_id: 71,
|
80
|
+
cinema_name: 'Odeon Brighton',
|
81
|
+
time: Time.utc(2014, 9, 12, 11, 0),
|
82
|
+
variant: 'Kids BABY'
|
83
|
+
}
|
84
|
+
end
|
85
|
+
|
86
|
+
it 'is an alphabetically ordered array of lower-cased strings' do
|
87
|
+
subject.must_be_instance_of Array
|
88
|
+
subject.each do |tag|
|
89
|
+
tag.must_be_instance_of String
|
90
|
+
end
|
91
|
+
subject.must_equal %w(baby kids)
|
69
92
|
end
|
70
|
-
subject.must_equal %w(baby kids)
|
71
93
|
end
|
72
94
|
end
|
73
95
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: odeon_uk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Croll
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|