themoviedb 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +459 -0
- data/lib/themoviedb.rb +4 -5
- data/lib/themoviedb/api.rb +4 -5
- data/lib/themoviedb/collection.rb +6 -7
- data/lib/themoviedb/company.rb +7 -8
- data/lib/themoviedb/configuration.rb +2 -2
- data/lib/themoviedb/episode.rb +16 -17
- data/lib/themoviedb/find.rb +11 -12
- data/lib/themoviedb/genre.rb +53 -57
- data/lib/themoviedb/job.rb +3 -5
- data/lib/themoviedb/movie.rb +62 -63
- data/lib/themoviedb/person.rb +37 -33
- data/lib/themoviedb/resource.rb +19 -21
- data/lib/themoviedb/search.rb +30 -30
- data/lib/themoviedb/season.rb +16 -17
- data/lib/themoviedb/tv.rb +24 -25
- data/lib/themoviedb/version.rb +2 -1
- data/spec/company_spec.rb +31 -36
- data/spec/find_spec.rb +10 -13
- data/spec/movie_spec.rb +124 -129
- data/spec/person_spec.rb +53 -53
- data/spec/spec/vcr/find/search_imdb.yml +39 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/tv_spec.rb +196 -217
- data/spec/vcr/company/detail.yml +67 -0
- data/spec/vcr/company/movies.yml +98 -0
- data/spec/vcr/find/search_imdb.yml +50 -0
- data/spec/vcr/find/search_tvdb.yml +52 -0
- data/spec/vcr/movie/alternative_titles_for_id.yml +69 -0
- data/spec/vcr/movie/cast_information_for_id.yml +109 -0
- data/spec/vcr/movie/changes_made.yml +60 -0
- data/spec/vcr/movie/credits_for_id.yml +99 -0
- data/spec/vcr/movie/crew_for_id.yml +109 -0
- data/spec/vcr/movie/detail.yml +93 -0
- data/spec/vcr/movie/detail_with_appended_response.yml +254 -0
- data/spec/vcr/movie/images.yml +62 -0
- data/spec/vcr/movie/keywords_for_id.yml +62 -0
- data/spec/vcr/movie/language_german.yml +112 -0
- data/spec/vcr/movie/movie_belongs_for_id.yml +89 -0
- data/spec/vcr/movie/now_playing.yml +90 -0
- data/spec/vcr/movie/popular.yml +96 -0
- data/spec/vcr/movie/releases_for_id.yml +60 -0
- data/spec/vcr/movie/return_latest_movie.yml +62 -0
- data/spec/vcr/movie/return_upcoming_movie.yml +186 -0
- data/spec/vcr/movie/similar_for_id.yml +180 -0
- data/spec/vcr/movie/top_rated.yml +190 -0
- data/spec/vcr/movie/trailers_for_id.yml +60 -0
- data/spec/vcr/movie/translations_for_id.yml +76 -0
- data/spec/vcr/person/changes.yml +50 -0
- data/spec/vcr/person/credits.yml +459 -0
- data/spec/vcr/person/detail.yml +65 -0
- data/spec/vcr/person/detail_with_appended_response.yml +762 -0
- data/spec/vcr/person/images.yml +50 -0
- data/spec/vcr/person/latest.yml +51 -0
- data/spec/vcr/person/popular.yml +125 -0
- data/spec/vcr/tv/cast.yml +74 -0
- data/spec/vcr/tv/crew.yml +74 -0
- data/spec/vcr/tv/detail.yml +63 -0
- data/spec/vcr/tv/detail_with_appeded_response.yml +76 -0
- data/spec/vcr/tv/external_ids.yml +60 -0
- data/spec/vcr/tv/images.yml +121 -0
- data/spec/vcr/tv/popular.yml +96 -0
- data/spec/vcr/tv/test_chuck.yml +52 -0
- data/spec/vcr/tv/top_rated.yml +84 -0
- data/themoviedb.gemspec +10 -35
- metadata +94 -9
data/spec/find_spec.rb
CHANGED
@@ -3,29 +3,26 @@ require 'spec_helper'
|
|
3
3
|
require 'vcr'
|
4
4
|
|
5
5
|
describe Tmdb::Find do
|
6
|
-
|
7
|
-
describe "For a search" do
|
6
|
+
describe 'For a search' do
|
8
7
|
before(:each) do
|
9
8
|
@find = Tmdb::Find
|
10
9
|
end
|
11
10
|
|
12
|
-
it
|
11
|
+
it 'should return results for imdb_id' do
|
13
12
|
VCR.use_cassette 'find/search_imdb' do
|
14
|
-
find = @find.imdb_id(
|
15
|
-
find['movie_results'].
|
16
|
-
find['person_results'].
|
17
|
-
find['tv_results'].
|
13
|
+
find = @find.imdb_id('tt1375666')
|
14
|
+
expect(find['movie_results']).to be_truthy
|
15
|
+
expect(find['person_results']).to be_truthy
|
16
|
+
expect(find['tv_results']).to be_truthy
|
18
17
|
end
|
19
18
|
end
|
20
19
|
|
21
|
-
it
|
20
|
+
it 'should return results for tvdb_id' do
|
22
21
|
VCR.use_cassette 'find/search_tvdb' do
|
23
|
-
find = @find.tvdb_id(
|
24
|
-
find['tv_results'].first['name'].
|
25
|
-
find['tv_results'].
|
22
|
+
find = @find.tvdb_id('81189')
|
23
|
+
expect(find['tv_results'].first['name']).to eq 'Breaking Bad'
|
24
|
+
expect(find['tv_results']).to be_truthy
|
26
25
|
end
|
27
26
|
end
|
28
|
-
|
29
27
|
end
|
30
|
-
|
31
28
|
end
|
data/spec/movie_spec.rb
CHANGED
@@ -1,316 +1,311 @@
|
|
1
|
-
#encoding: utf-8
|
1
|
+
# encoding: utf-8
|
2
2
|
require 'rspec'
|
3
3
|
require 'spec_helper'
|
4
4
|
require 'vcr'
|
5
5
|
|
6
6
|
describe Tmdb::Movie do
|
7
|
-
|
8
|
-
|
9
|
-
:
|
10
|
-
:
|
11
|
-
:
|
12
|
-
:
|
13
|
-
:
|
14
|
-
:releases,:trailers,:translations,:reviews,:lists]
|
7
|
+
@fields = [:id, :adult, :backdrop_path, :belongs_to_collection,
|
8
|
+
:budget, :genres, :homepage, :imdb_id, :original_title,
|
9
|
+
:overview, :popularity, :poster_path, :production_companies,
|
10
|
+
:production_countries, :release_date, :revenue, :runtime,
|
11
|
+
:spoken_languages, :status, :tagline, :title, :vote_average,
|
12
|
+
:vote_count, :alternative_titles, :credits, :images, :keywords,
|
13
|
+
:releases, :trailers, :translations, :reviews, :lists]
|
15
14
|
|
16
15
|
@fields.each do |field|
|
17
16
|
it { should respond_to field }
|
18
17
|
end
|
19
18
|
|
20
|
-
describe
|
19
|
+
describe 'For a movie' do
|
21
20
|
before(:each) do
|
22
21
|
@movie = Tmdb::Movie
|
23
22
|
end
|
24
23
|
|
25
|
-
it
|
24
|
+
it 'should return the latest movies' do
|
26
25
|
VCR.use_cassette 'movie/return_latest_movie' do
|
27
|
-
@movie.latest.
|
26
|
+
expect(@movie.latest).to be_truthy
|
28
27
|
end
|
29
28
|
end
|
30
29
|
|
31
|
-
it
|
30
|
+
it 'should return the upcoming movies' do
|
32
31
|
VCR.use_cassette 'movie/return_upcoming_movie' do
|
33
|
-
@movie.upcoming.
|
32
|
+
expect(@movie.upcoming).to be_truthy
|
34
33
|
end
|
35
34
|
end
|
36
35
|
|
37
|
-
it
|
36
|
+
it 'should show movies that are now playing' do
|
38
37
|
VCR.use_cassette 'movie/now_playing' do
|
39
|
-
@movie.now_playing.
|
38
|
+
expect(@movie.now_playing).to be_truthy
|
40
39
|
end
|
41
40
|
end
|
42
41
|
|
43
|
-
it
|
42
|
+
it 'should return popular movies' do
|
44
43
|
VCR.use_cassette 'movie/popular' do
|
45
|
-
@movie.popular.
|
44
|
+
expect(@movie.popular).to be_truthy
|
46
45
|
end
|
47
46
|
end
|
48
47
|
|
49
|
-
it
|
48
|
+
it 'should return top rated movies' do
|
50
49
|
VCR.use_cassette 'movie/top_rated' do
|
51
|
-
@movie.top_rated.
|
50
|
+
expect(@movie.top_rated).to be_truthy
|
52
51
|
end
|
53
52
|
end
|
54
53
|
|
55
|
-
it
|
54
|
+
it 'should return alternative titles for an ID' do
|
56
55
|
VCR.use_cassette 'movie/alternative_titles_for_id' do
|
57
|
-
@movie.alternative_titles(5).
|
56
|
+
expect(@movie.alternative_titles(5)).to be_truthy
|
58
57
|
end
|
59
58
|
end
|
60
59
|
|
61
|
-
it
|
60
|
+
it 'should return cast information for an ID' do
|
62
61
|
VCR.use_cassette 'movie/cast_information_for_id' do
|
63
|
-
@movie.casts(5).
|
62
|
+
expect(@movie.casts(5)).to be_truthy
|
64
63
|
end
|
65
64
|
end
|
66
65
|
|
67
|
-
it
|
66
|
+
it 'should return crew for an ID' do
|
68
67
|
VCR.use_cassette 'movie/crew_for_id' do
|
69
|
-
@movie.crew(5).
|
68
|
+
expect(@movie.crew(5)).to be_truthy
|
70
69
|
end
|
71
70
|
end
|
72
71
|
|
73
|
-
it
|
72
|
+
it 'should return keywords for an ID' do
|
74
73
|
VCR.use_cassette 'movie/keywords_for_id' do
|
75
|
-
@movie.keywords(5).
|
74
|
+
expect(@movie.keywords(5)).to be_truthy
|
76
75
|
end
|
77
76
|
end
|
78
77
|
|
79
|
-
it
|
78
|
+
it 'should return releases for an ID' do
|
80
79
|
VCR.use_cassette 'movie/releases_for_id' do
|
81
|
-
@movie.releases(5).
|
80
|
+
expect(@movie.releases(5)).to be_truthy
|
82
81
|
end
|
83
82
|
end
|
84
83
|
|
85
|
-
it
|
84
|
+
it 'should return trailers for an ID' do
|
86
85
|
VCR.use_cassette 'movie/trailers_for_id' do
|
87
|
-
@movie.trailers(5).
|
86
|
+
expect(@movie.trailers(5)).to be_truthy
|
88
87
|
end
|
89
88
|
end
|
90
89
|
|
91
|
-
it
|
90
|
+
it 'should return translations for an ID' do
|
92
91
|
VCR.use_cassette 'movie/translations_for_id' do
|
93
|
-
@movie.translations(5).
|
92
|
+
expect(@movie.translations(5)).to be_truthy
|
94
93
|
end
|
95
94
|
end
|
96
95
|
|
97
|
-
it
|
96
|
+
it 'should return similar_movies for an ID' do
|
98
97
|
VCR.use_cassette 'movie/similar_for_id' do
|
99
|
-
@movie.similar_movies(5).
|
98
|
+
expect(@movie.similar_movies(5)).to be_truthy
|
100
99
|
end
|
101
100
|
end
|
102
101
|
|
103
|
-
it
|
102
|
+
it 'should return the list the movie belongs to' do
|
104
103
|
VCR.use_cassette 'movie/movie_belongs_for_id' do
|
105
|
-
@movie.lists(5).
|
104
|
+
expect(@movie.lists(5)).to be_truthy
|
106
105
|
end
|
107
106
|
end
|
108
107
|
|
109
|
-
it
|
108
|
+
it 'should return the changes made' do
|
110
109
|
VCR.use_cassette 'movie/changes_made' do
|
111
|
-
@movie.changes(5).
|
110
|
+
expect(@movie.changes(5)).to be_truthy
|
112
111
|
end
|
113
112
|
end
|
114
113
|
|
115
|
-
it
|
114
|
+
it 'should return credits for an ID' do
|
116
115
|
VCR.use_cassette 'movie/credits_for_id' do
|
117
|
-
@movie.credits(5).
|
116
|
+
expect(@movie.credits(5)).to be_truthy
|
118
117
|
end
|
119
118
|
end
|
120
119
|
end
|
121
120
|
|
122
|
-
describe
|
123
|
-
|
121
|
+
describe 'For a movie detail' do
|
124
122
|
before(:each) do
|
125
123
|
VCR.use_cassette 'movie/detail' do
|
126
|
-
@movie = Tmdb::Movie.detail(
|
124
|
+
@movie = Tmdb::Movie.detail(22_855)
|
127
125
|
end
|
128
126
|
end
|
129
127
|
|
130
|
-
it
|
131
|
-
@movie['id'].
|
128
|
+
it 'should return a id' do
|
129
|
+
expect(@movie['id']).to eq 22_855
|
132
130
|
end
|
133
131
|
|
134
|
-
it
|
135
|
-
@movie['adult'].
|
132
|
+
it 'should return a adult' do
|
133
|
+
expect(@movie['adult']).to eq false
|
136
134
|
end
|
137
135
|
|
138
|
-
it
|
139
|
-
@movie['backdrop_path'].
|
136
|
+
it 'should return a backdrop_path' do
|
137
|
+
expect(@movie['backdrop_path']).to eq '/mXuqM7ksHW1AJ30AInwJvJTAwut.jpg'
|
140
138
|
end
|
141
139
|
|
142
|
-
it
|
143
|
-
@movie['belongs_to_collection']['name'].
|
140
|
+
it 'should return a belongs_to_collection' do
|
141
|
+
expect(@movie['belongs_to_collection']['name']).to eq 'DC Universe Animated Original Movies'
|
144
142
|
end
|
145
143
|
|
146
|
-
it
|
147
|
-
@movie['budget'].
|
144
|
+
it 'should return a budget' do
|
145
|
+
expect(@movie['budget']).to eq 0
|
148
146
|
end
|
149
147
|
|
150
|
-
it
|
151
|
-
@movie['genres'].
|
148
|
+
it 'should return genres' do
|
149
|
+
expect(@movie['genres']).not_to eq []
|
152
150
|
end
|
153
151
|
|
154
|
-
it
|
155
|
-
@movie['homepage'].
|
152
|
+
it 'should return homepage' do
|
153
|
+
expect(@movie['homepage']).to eq 'http://www.warnervideo.com/supermanbatmandvd/'
|
156
154
|
end
|
157
155
|
|
158
|
-
it
|
159
|
-
@movie['imdb_id'].
|
156
|
+
it 'should return a imdb_id' do
|
157
|
+
expect(@movie['imdb_id']).to eq 'tt1398941'
|
160
158
|
end
|
161
159
|
|
162
|
-
it
|
163
|
-
@movie['original_title'].
|
160
|
+
it 'should return a original_title' do
|
161
|
+
expect(@movie['original_title']).to eq 'Superman/Batman: Public Enemies'
|
164
162
|
end
|
165
163
|
|
166
|
-
it
|
167
|
-
@movie['overview'].
|
164
|
+
it 'should return a overview' do
|
165
|
+
expect(@movie['overview']).to eq "United States President Lex Luthor uses the oncoming trajectory of a Kryptonite meteor to frame Superman and declare a $1 billion bounty on the heads of the Man of Steel and his ‘partner in crime’, Batman. Heroes and villains alike launch a relentless pursuit of Superman and Batman, who must unite—and recruit help—to try and stave off the action-packed onslaught, stop the meteor Luthors plot."
|
168
166
|
end
|
169
167
|
|
170
|
-
it
|
171
|
-
@movie['popularity'].
|
168
|
+
it 'should return popularity' do
|
169
|
+
expect(@movie['popularity']).to eq 1.15974723131612
|
172
170
|
end
|
173
171
|
|
174
|
-
it
|
175
|
-
@movie['poster_path'].
|
172
|
+
it 'should return poster_path' do
|
173
|
+
expect(@movie['poster_path']).to eq '/7eaHkUKAzfstt6XQCiXyuKiZUAw.jpg'
|
176
174
|
end
|
177
175
|
|
178
|
-
it
|
179
|
-
@movie['production_companies'].
|
176
|
+
it 'should return production_companies' do
|
177
|
+
expect(@movie['production_companies']).not_to eq []
|
180
178
|
end
|
181
179
|
|
182
|
-
it
|
183
|
-
@movie['production_countries'].
|
180
|
+
it 'should return production_countries' do
|
181
|
+
expect(@movie['production_countries']).not_to eq []
|
184
182
|
end
|
185
183
|
|
186
|
-
it
|
187
|
-
@movie['release_date'].
|
184
|
+
it 'should return release_date' do
|
185
|
+
expect(@movie['release_date']).to eq '2009-09-29'
|
188
186
|
end
|
189
187
|
|
190
|
-
it
|
191
|
-
@movie['revenue'].
|
188
|
+
it 'should return revenue' do
|
189
|
+
expect(@movie['revenue']).to eq 0
|
192
190
|
end
|
193
191
|
|
194
|
-
it
|
195
|
-
@movie['runtime'].
|
192
|
+
it 'should return a runtime' do
|
193
|
+
expect(@movie['runtime']).to eq 67
|
196
194
|
end
|
197
195
|
|
198
|
-
it
|
199
|
-
@movie['spoken_languages'].first['name'].
|
196
|
+
it 'should return spoken_languages' do
|
197
|
+
expect(@movie['spoken_languages'].first['name']).to eq 'English'
|
200
198
|
end
|
201
199
|
|
202
|
-
it
|
203
|
-
@movie['status'].
|
200
|
+
it 'should return status' do
|
201
|
+
expect(@movie['status']).to eq 'Released'
|
204
202
|
end
|
205
203
|
|
206
|
-
it
|
207
|
-
@movie['vote_average'].
|
204
|
+
it 'should return vote_average' do
|
205
|
+
expect(@movie['vote_average']).to eq 7.4
|
208
206
|
end
|
209
207
|
|
210
|
-
it
|
211
|
-
@movie['vote_count'].
|
208
|
+
it 'should return vote_count' do
|
209
|
+
expect(@movie['vote_count']).to eq 23
|
212
210
|
end
|
213
211
|
end
|
214
212
|
|
215
213
|
describe 'For a movie detail with appended response' do
|
216
|
-
let(:append_fields)
|
217
|
-
|
214
|
+
let(:append_fields) do
|
215
|
+
%w( alternative_titles credits images keywords releases
|
216
|
+
trailers translations reviews lists changes ).join(',')
|
217
|
+
end
|
218
218
|
before(:each) do
|
219
219
|
VCR.use_cassette 'movie/detail_with_appended_response' do
|
220
|
-
@movie = Tmdb::Movie.detail(
|
220
|
+
@movie = Tmdb::Movie.detail(22_855, append_to_response: append_fields)
|
221
221
|
end
|
222
222
|
end
|
223
223
|
|
224
224
|
it 'should return alternative_titles' do
|
225
|
-
@movie['alternative_titles']['titles'].size.
|
226
|
-
@movie['alternative_titles']['titles'].first['title'].
|
225
|
+
expect(@movie['alternative_titles']['titles'].size).to eq 4
|
226
|
+
expect(@movie['alternative_titles']['titles'].first['title']).to eq 'Superman und Batman Public Enemies'
|
227
227
|
end
|
228
228
|
|
229
229
|
it 'should return credits' do
|
230
|
-
@movie['credits']['cast'].size.
|
231
|
-
@movie['credits']['cast'].first['id'].
|
232
|
-
@movie['credits']['crew'].size.
|
233
|
-
@movie['credits']['crew'].first['id'].
|
230
|
+
expect(@movie['credits']['cast'].size).to eq 20
|
231
|
+
expect(@movie['credits']['cast'].first['id']).to eq 34_947
|
232
|
+
expect(@movie['credits']['crew'].size).to eq 3
|
233
|
+
expect(@movie['credits']['crew'].first['id']).to eq 90_367
|
234
234
|
end
|
235
235
|
|
236
236
|
it 'should return images' do
|
237
|
-
@movie['images']['backdrops'].size.
|
238
|
-
@movie['images']['backdrops'].first['file_path'].
|
239
|
-
@movie['images']['posters'].size.
|
240
|
-
@movie['images']['posters'].first['file_path'].
|
237
|
+
expect(@movie['images']['backdrops'].size).to eq 6
|
238
|
+
expect(@movie['images']['backdrops'].first['file_path']).to eq '/mXuqM7ksHW1AJ30AInwJvJTAwut.jpg'
|
239
|
+
expect(@movie['images']['posters'].size).to eq 9
|
240
|
+
expect(@movie['images']['posters'].first['file_path']).to eq '/7eaHkUKAzfstt6XQCiXyuKiZUAw.jpg'
|
241
241
|
end
|
242
242
|
|
243
243
|
it 'should return keywords' do
|
244
|
-
@movie['keywords']['keywords'].size.
|
245
|
-
@movie['keywords']['keywords'].first['id'].
|
244
|
+
expect(@movie['keywords']['keywords'].size).to eq 2
|
245
|
+
expect(@movie['keywords']['keywords'].first['id']).to eq 9715
|
246
246
|
end
|
247
247
|
|
248
248
|
it 'should return releases' do
|
249
|
-
@movie['releases']['countries'].size.
|
250
|
-
@movie['releases']['countries'].first['release_date'].
|
249
|
+
expect(@movie['releases']['countries'].size).to eq 1
|
250
|
+
expect(@movie['releases']['countries'].first['release_date']).to eq '2009-09-29'
|
251
251
|
end
|
252
252
|
|
253
253
|
it 'should return trailers' do
|
254
|
-
@movie['trailers']['quicktime'].
|
255
|
-
@movie['trailers']['youtube'].size.
|
256
|
-
@movie['trailers']['youtube'].first['name'].
|
254
|
+
expect(@movie['trailers']['quicktime']).to eq []
|
255
|
+
expect(@movie['trailers']['youtube'].size).to eq 1
|
256
|
+
expect(@movie['trailers']['youtube'].first['name']).to eq 'Official Preview Trailer'
|
257
257
|
end
|
258
258
|
|
259
259
|
it 'should return translations' do
|
260
|
-
@movie['translations']['translations'].size.
|
261
|
-
@movie['translations']['translations'].first['name'].
|
260
|
+
expect(@movie['translations']['translations'].size).to eq 13
|
261
|
+
expect(@movie['translations']['translations'].first['name']).to eq 'English'
|
262
262
|
end
|
263
263
|
|
264
264
|
it 'should return reviews' do
|
265
|
-
@movie['reviews']['results'].
|
265
|
+
expect(@movie['reviews']['results']).to eq []
|
266
266
|
end
|
267
267
|
|
268
268
|
it 'should return lists' do
|
269
|
-
@movie['lists']['results'].size.
|
270
|
-
@movie['lists']['results'].first['id'].
|
269
|
+
expect(@movie['lists']['results'].size).to eq 4
|
270
|
+
expect(@movie['lists']['results'].first['id']).to eq '51d6b52219c295172912ff1e'
|
271
271
|
end
|
272
272
|
|
273
273
|
it 'should return changes' do
|
274
|
-
@movie['changes']['changes'].
|
274
|
+
expect(@movie['changes']['changes']).to eq []
|
275
275
|
end
|
276
276
|
end
|
277
277
|
|
278
|
-
describe
|
279
|
-
|
278
|
+
describe 'For a movies images' do
|
280
279
|
before(:each) do
|
281
280
|
VCR.use_cassette 'movie/images' do
|
282
|
-
@movie = Tmdb::Movie.images(
|
281
|
+
@movie = Tmdb::Movie.images(22_855)
|
283
282
|
end
|
284
283
|
end
|
285
284
|
|
286
|
-
it
|
285
|
+
it 'should return backdrops' do
|
287
286
|
@movie['backdrops'].length == 4
|
288
287
|
end
|
289
288
|
|
290
|
-
it
|
291
|
-
@movie['posters'].
|
289
|
+
it 'should return posters' do
|
290
|
+
expect(@movie['posters']).to be_truthy
|
292
291
|
end
|
293
|
-
|
294
292
|
end
|
295
293
|
|
296
|
-
describe
|
297
|
-
|
294
|
+
describe 'For other languages' do
|
298
295
|
before(:each) do
|
299
|
-
Tmdb::Api.language(
|
296
|
+
Tmdb::Api.language('de')
|
300
297
|
VCR.use_cassette 'movie/language_german' do
|
301
298
|
@movie = Tmdb::Movie.detail(562)
|
302
299
|
end
|
303
300
|
Tmdb::Api.language(nil)
|
304
301
|
end
|
305
302
|
|
306
|
-
it
|
307
|
-
@movie['title'].
|
303
|
+
it 'should return the german name' do
|
304
|
+
expect(@movie['title']).to eq 'Stirb Langsam'
|
308
305
|
end
|
309
306
|
|
310
|
-
it
|
311
|
-
@movie['overview'].
|
307
|
+
it 'should return the german description' do
|
308
|
+
expect(@movie['overview']).to eq "Eigentlich möchte der New Yorker Polizist John McClane dieses Weihnachten nur seine Noch-Ehefrau Holly, welche in Los Angeles in einer großen, erfolgreichen Firma Karriere gemacht hat, besuchen und das Fest mit den beiden gemeinsamen Kinder verbringen. Als die Feierlichkeiten im Nakatomi Plaza beginnen sollen, stürmt eine Gruppe von Terroristen das Hochhaus und nur John McClane schafft es ihnen zu entwischen. Lediglich bewaffnet mit ein paar Zigaretten und einem Walkie-Talkie, wodurch er den Funk der Geiselnehmer mithören kann, und mit Waffen, welche die Terroristen gelegentlich so rumliegen lassen, muss John nun nicht nur sein eigenes Leben retten, sondern möglichst auch das aller anderen Beteiligten. Und so beschließt er, die äußerst brutale Truppe auszumerzen und sich einen Terroristen nach dem anderen vorzuknöpfen. Während draußen dann schon die Polizei und das FBI stümperhaft versucht, das Gebäude zu stürmen, kämpft McClane ohne Schuhe gegen die 12 Aggressoren..."
|
312
309
|
end
|
313
|
-
|
314
310
|
end
|
315
|
-
|
316
311
|
end
|