cineworld_uk 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/cineworld_uk/internal/whatson_parser.rb +2 -10
- data/lib/cineworld_uk/version.rb +2 -2
- data/test/fixtures/cinemas.html +20 -20
- data/test/fixtures/information/brighton.html +39 -33
- data/test/fixtures/information/bristol.html +39 -33
- data/test/fixtures/whatson/brighton.html +5637 -6909
- data/test/fixtures/whatson/brighton/film_first.html +40 -608
- data/test/fixtures/whatson/brighton/film_last.html +25 -15
- data/test/fixtures/whatson/brighton/film_second.html +56 -354
- data/test/fixtures/whatson/glasgow-imax-at-gsc/film_first.html +75 -33
- data/test/fixtures/whatson/the-o2-greenwich/film_first.html +36 -1111
- data/test/lib/cineworld_uk/internal/film_with_screenings_parser_test.rb +3 -3
- data/test/lib/cineworld_uk/internal/whatson_parser_test.rb +2 -2
- data/test/lib/cineworld_uk/screening_test.rb +1 -1
- metadata +1 -1
@@ -39,7 +39,7 @@ describe CineworldUk::Internal::FilmWithScreeningsParser do
|
|
39
39
|
|
40
40
|
it 'returns the film name' do
|
41
41
|
subject.must_be_instance_of(String)
|
42
|
-
subject.must_equal('
|
42
|
+
subject.must_equal('The Boxtrolls')
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -48,7 +48,7 @@ describe CineworldUk::Internal::FilmWithScreeningsParser do
|
|
48
48
|
|
49
49
|
it 'returns the film name' do
|
50
50
|
subject.must_be_instance_of(String)
|
51
|
-
subject.must_equal('
|
51
|
+
subject.must_equal('Sex Tape')
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
@@ -57,7 +57,7 @@ describe CineworldUk::Internal::FilmWithScreeningsParser do
|
|
57
57
|
|
58
58
|
it 'returns the film name' do
|
59
59
|
subject.must_be_instance_of(String)
|
60
|
-
subject.must_equal('The
|
60
|
+
subject.must_equal('The Vatican Museums')
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
@@ -34,13 +34,13 @@ describe CineworldUk::Internal::WhatsonParser do
|
|
34
34
|
subject.first.must_include('class="span4"') # big poster
|
35
35
|
subject.first.must_include('class="span5"') # film info block
|
36
36
|
subject.first.must_include('<h3 class="h1">') # title
|
37
|
-
subject.first.must_include('class="
|
37
|
+
subject.first.must_include('class="row day"') # showing rows
|
38
38
|
|
39
39
|
subject[1..-1].each do |html|
|
40
40
|
html.must_include('class="span2"') # poster
|
41
41
|
html.must_include('class="span7"') # film info block
|
42
42
|
html.must_include('<h3 class="h1">') # title
|
43
|
-
html.must_include('class="
|
43
|
+
html.must_include('class="row day"') # showing rows
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|