themoviedb 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +459 -0
  3. data/lib/themoviedb.rb +4 -5
  4. data/lib/themoviedb/api.rb +4 -5
  5. data/lib/themoviedb/collection.rb +6 -7
  6. data/lib/themoviedb/company.rb +7 -8
  7. data/lib/themoviedb/configuration.rb +2 -2
  8. data/lib/themoviedb/episode.rb +16 -17
  9. data/lib/themoviedb/find.rb +11 -12
  10. data/lib/themoviedb/genre.rb +53 -57
  11. data/lib/themoviedb/job.rb +3 -5
  12. data/lib/themoviedb/movie.rb +62 -63
  13. data/lib/themoviedb/person.rb +37 -33
  14. data/lib/themoviedb/resource.rb +19 -21
  15. data/lib/themoviedb/search.rb +30 -30
  16. data/lib/themoviedb/season.rb +16 -17
  17. data/lib/themoviedb/tv.rb +24 -25
  18. data/lib/themoviedb/version.rb +2 -1
  19. data/spec/company_spec.rb +31 -36
  20. data/spec/find_spec.rb +10 -13
  21. data/spec/movie_spec.rb +124 -129
  22. data/spec/person_spec.rb +53 -53
  23. data/spec/spec/vcr/find/search_imdb.yml +39 -0
  24. data/spec/spec_helper.rb +29 -0
  25. data/spec/tv_spec.rb +196 -217
  26. data/spec/vcr/company/detail.yml +67 -0
  27. data/spec/vcr/company/movies.yml +98 -0
  28. data/spec/vcr/find/search_imdb.yml +50 -0
  29. data/spec/vcr/find/search_tvdb.yml +52 -0
  30. data/spec/vcr/movie/alternative_titles_for_id.yml +69 -0
  31. data/spec/vcr/movie/cast_information_for_id.yml +109 -0
  32. data/spec/vcr/movie/changes_made.yml +60 -0
  33. data/spec/vcr/movie/credits_for_id.yml +99 -0
  34. data/spec/vcr/movie/crew_for_id.yml +109 -0
  35. data/spec/vcr/movie/detail.yml +93 -0
  36. data/spec/vcr/movie/detail_with_appended_response.yml +254 -0
  37. data/spec/vcr/movie/images.yml +62 -0
  38. data/spec/vcr/movie/keywords_for_id.yml +62 -0
  39. data/spec/vcr/movie/language_german.yml +112 -0
  40. data/spec/vcr/movie/movie_belongs_for_id.yml +89 -0
  41. data/spec/vcr/movie/now_playing.yml +90 -0
  42. data/spec/vcr/movie/popular.yml +96 -0
  43. data/spec/vcr/movie/releases_for_id.yml +60 -0
  44. data/spec/vcr/movie/return_latest_movie.yml +62 -0
  45. data/spec/vcr/movie/return_upcoming_movie.yml +186 -0
  46. data/spec/vcr/movie/similar_for_id.yml +180 -0
  47. data/spec/vcr/movie/top_rated.yml +190 -0
  48. data/spec/vcr/movie/trailers_for_id.yml +60 -0
  49. data/spec/vcr/movie/translations_for_id.yml +76 -0
  50. data/spec/vcr/person/changes.yml +50 -0
  51. data/spec/vcr/person/credits.yml +459 -0
  52. data/spec/vcr/person/detail.yml +65 -0
  53. data/spec/vcr/person/detail_with_appended_response.yml +762 -0
  54. data/spec/vcr/person/images.yml +50 -0
  55. data/spec/vcr/person/latest.yml +51 -0
  56. data/spec/vcr/person/popular.yml +125 -0
  57. data/spec/vcr/tv/cast.yml +74 -0
  58. data/spec/vcr/tv/crew.yml +74 -0
  59. data/spec/vcr/tv/detail.yml +63 -0
  60. data/spec/vcr/tv/detail_with_appeded_response.yml +76 -0
  61. data/spec/vcr/tv/external_ids.yml +60 -0
  62. data/spec/vcr/tv/images.yml +121 -0
  63. data/spec/vcr/tv/popular.yml +96 -0
  64. data/spec/vcr/tv/test_chuck.yml +52 -0
  65. data/spec/vcr/tv/top_rated.yml +84 -0
  66. data/themoviedb.gemspec +10 -35
  67. metadata +94 -9
@@ -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 "should return results for imdb_id" do
11
+ it 'should return results for imdb_id' do
13
12
  VCR.use_cassette 'find/search_imdb' do
14
- find = @find.imdb_id("tt1375666")
15
- find['movie_results'].should be_true
16
- find['person_results'].should be_true
17
- find['tv_results'].should be_true
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 "should return results for tvdb_id" do
20
+ it 'should return results for tvdb_id' do
22
21
  VCR.use_cassette 'find/search_tvdb' do
23
- find = @find.tvdb_id("81189")
24
- find['tv_results'].first['name'].should == 'Breaking Bad'
25
- find['tv_results'].should be_true
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
@@ -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
- @fields = [:id,:adult,:backdrop_path,:belongs_to_collection,
9
- :budget,:genres,:homepage,:imdb_id,:original_title,
10
- :overview,:popularity,:poster_path,:production_companies,
11
- :production_countries,:release_date,:revenue,:runtime,
12
- :spoken_languages,:status,:tagline,:title,:vote_average,
13
- :vote_count,:alternative_titles,:credits,:images,:keywords,
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 "For a movie" do
19
+ describe 'For a movie' do
21
20
  before(:each) do
22
21
  @movie = Tmdb::Movie
23
22
  end
24
23
 
25
- it "should return the latest movies" do
24
+ it 'should return the latest movies' do
26
25
  VCR.use_cassette 'movie/return_latest_movie' do
27
- @movie.latest.should be_true
26
+ expect(@movie.latest).to be_truthy
28
27
  end
29
28
  end
30
29
 
31
- it "should return the upcoming movies" do
30
+ it 'should return the upcoming movies' do
32
31
  VCR.use_cassette 'movie/return_upcoming_movie' do
33
- @movie.upcoming.should be_true
32
+ expect(@movie.upcoming).to be_truthy
34
33
  end
35
34
  end
36
35
 
37
- it "should show movies that are now playing" do
36
+ it 'should show movies that are now playing' do
38
37
  VCR.use_cassette 'movie/now_playing' do
39
- @movie.now_playing.should be_true
38
+ expect(@movie.now_playing).to be_truthy
40
39
  end
41
40
  end
42
41
 
43
- it "should return popular movies" do
42
+ it 'should return popular movies' do
44
43
  VCR.use_cassette 'movie/popular' do
45
- @movie.popular.should be_true
44
+ expect(@movie.popular).to be_truthy
46
45
  end
47
46
  end
48
47
 
49
- it "should return top rated movies" do
48
+ it 'should return top rated movies' do
50
49
  VCR.use_cassette 'movie/top_rated' do
51
- @movie.top_rated.should be_true
50
+ expect(@movie.top_rated).to be_truthy
52
51
  end
53
52
  end
54
53
 
55
- it "should return alternative titles for an ID" do
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).should be_true
56
+ expect(@movie.alternative_titles(5)).to be_truthy
58
57
  end
59
58
  end
60
59
 
61
- it "should return cast information for an ID" do
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).should be_true
62
+ expect(@movie.casts(5)).to be_truthy
64
63
  end
65
64
  end
66
65
 
67
- it "should return crew for an ID" do
66
+ it 'should return crew for an ID' do
68
67
  VCR.use_cassette 'movie/crew_for_id' do
69
- @movie.crew(5).should be_true
68
+ expect(@movie.crew(5)).to be_truthy
70
69
  end
71
70
  end
72
71
 
73
- it "should return keywords for an ID" do
72
+ it 'should return keywords for an ID' do
74
73
  VCR.use_cassette 'movie/keywords_for_id' do
75
- @movie.keywords(5).should be_true
74
+ expect(@movie.keywords(5)).to be_truthy
76
75
  end
77
76
  end
78
77
 
79
- it "should return releases for an ID" do
78
+ it 'should return releases for an ID' do
80
79
  VCR.use_cassette 'movie/releases_for_id' do
81
- @movie.releases(5).should be_true
80
+ expect(@movie.releases(5)).to be_truthy
82
81
  end
83
82
  end
84
83
 
85
- it "should return trailers for an ID" do
84
+ it 'should return trailers for an ID' do
86
85
  VCR.use_cassette 'movie/trailers_for_id' do
87
- @movie.trailers(5).should be_true
86
+ expect(@movie.trailers(5)).to be_truthy
88
87
  end
89
88
  end
90
89
 
91
- it "should return translations for an ID" do
90
+ it 'should return translations for an ID' do
92
91
  VCR.use_cassette 'movie/translations_for_id' do
93
- @movie.translations(5).should be_true
92
+ expect(@movie.translations(5)).to be_truthy
94
93
  end
95
94
  end
96
95
 
97
- it "should return similar_movies for an ID" do
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).should be_true
98
+ expect(@movie.similar_movies(5)).to be_truthy
100
99
  end
101
100
  end
102
101
 
103
- it "should return the list the movie belongs to" do
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).should be_true
104
+ expect(@movie.lists(5)).to be_truthy
106
105
  end
107
106
  end
108
107
 
109
- it "should return the changes made" do
108
+ it 'should return the changes made' do
110
109
  VCR.use_cassette 'movie/changes_made' do
111
- @movie.changes(5).should be_true
110
+ expect(@movie.changes(5)).to be_truthy
112
111
  end
113
112
  end
114
113
 
115
- it "should return credits for an ID" do
114
+ it 'should return credits for an ID' do
116
115
  VCR.use_cassette 'movie/credits_for_id' do
117
- @movie.credits(5).should be_true
116
+ expect(@movie.credits(5)).to be_truthy
118
117
  end
119
118
  end
120
119
  end
121
120
 
122
- describe "For a movie detail" do
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(22855)
124
+ @movie = Tmdb::Movie.detail(22_855)
127
125
  end
128
126
  end
129
127
 
130
- it "should return a id" do
131
- @movie['id'].should == 22855
128
+ it 'should return a id' do
129
+ expect(@movie['id']).to eq 22_855
132
130
  end
133
131
 
134
- it "should return a adult" do
135
- @movie['adult'].should == false
132
+ it 'should return a adult' do
133
+ expect(@movie['adult']).to eq false
136
134
  end
137
135
 
138
- it "should return a backdrop_path" do
139
- @movie['backdrop_path'].should == "/mXuqM7ksHW1AJ30AInwJvJTAwut.jpg"
136
+ it 'should return a backdrop_path' do
137
+ expect(@movie['backdrop_path']).to eq '/mXuqM7ksHW1AJ30AInwJvJTAwut.jpg'
140
138
  end
141
139
 
142
- it "should return a belongs_to_collection" do
143
- @movie['belongs_to_collection']['name'].should == "DC Universe Animated Original Movies"
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 "should return a budget" do
147
- @movie['budget'].should == 0
144
+ it 'should return a budget' do
145
+ expect(@movie['budget']).to eq 0
148
146
  end
149
147
 
150
- it "should return genres" do
151
- @movie['genres'].should_not == []
148
+ it 'should return genres' do
149
+ expect(@movie['genres']).not_to eq []
152
150
  end
153
151
 
154
- it "should return homepage" do
155
- @movie['homepage'].should == "http://www.warnervideo.com/supermanbatmandvd/"
152
+ it 'should return homepage' do
153
+ expect(@movie['homepage']).to eq 'http://www.warnervideo.com/supermanbatmandvd/'
156
154
  end
157
155
 
158
- it "should return a imdb_id" do
159
- @movie['imdb_id'].should == "tt1398941"
156
+ it 'should return a imdb_id' do
157
+ expect(@movie['imdb_id']).to eq 'tt1398941'
160
158
  end
161
159
 
162
- it "should return a original_title" do
163
- @movie['original_title'].should == "Superman/Batman: Public Enemies"
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 "should return a overview" do
167
- @movie['overview'].should == "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."
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 "should return popularity" do
171
- @movie['popularity'].should == 1.15974723131612
168
+ it 'should return popularity' do
169
+ expect(@movie['popularity']).to eq 1.15974723131612
172
170
  end
173
171
 
174
- it "should return poster_path" do
175
- @movie['poster_path'].should == "/7eaHkUKAzfstt6XQCiXyuKiZUAw.jpg"
172
+ it 'should return poster_path' do
173
+ expect(@movie['poster_path']).to eq '/7eaHkUKAzfstt6XQCiXyuKiZUAw.jpg'
176
174
  end
177
175
 
178
- it "should return production_companies" do
179
- @movie['production_companies'].should_not == []
176
+ it 'should return production_companies' do
177
+ expect(@movie['production_companies']).not_to eq []
180
178
  end
181
179
 
182
- it "should return production_countries" do
183
- @movie['production_countries'].should_not == []
180
+ it 'should return production_countries' do
181
+ expect(@movie['production_countries']).not_to eq []
184
182
  end
185
183
 
186
- it "should return release_date" do
187
- @movie['release_date'].should == "2009-09-29"
184
+ it 'should return release_date' do
185
+ expect(@movie['release_date']).to eq '2009-09-29'
188
186
  end
189
187
 
190
- it "should return revenue" do
191
- @movie['revenue'].should == 0
188
+ it 'should return revenue' do
189
+ expect(@movie['revenue']).to eq 0
192
190
  end
193
191
 
194
- it "should return a runtime" do
195
- @movie['runtime'].should == 67
192
+ it 'should return a runtime' do
193
+ expect(@movie['runtime']).to eq 67
196
194
  end
197
195
 
198
- it "should return spoken_languages" do
199
- @movie['spoken_languages'].first['name'].should == "English"
196
+ it 'should return spoken_languages' do
197
+ expect(@movie['spoken_languages'].first['name']).to eq 'English'
200
198
  end
201
199
 
202
- it "should return status" do
203
- @movie['status'].should == "Released"
200
+ it 'should return status' do
201
+ expect(@movie['status']).to eq 'Released'
204
202
  end
205
203
 
206
- it "should return vote_average" do
207
- @movie['vote_average'].should == 7.4
204
+ it 'should return vote_average' do
205
+ expect(@movie['vote_average']).to eq 7.4
208
206
  end
209
207
 
210
- it "should return vote_count" do
211
- @movie['vote_count'].should == 23
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) { %w{ alternative_titles credits images keywords releases
217
- trailers translations reviews lists changes }.join(',') }
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(22855, append_to_response: append_fields)
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.should == 4
226
- @movie['alternative_titles']['titles'].first['title'].should == 'Superman und Batman Public Enemies'
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.should == 20
231
- @movie['credits']['cast'].first['id'].should == 34947
232
- @movie['credits']['crew'].size.should == 3
233
- @movie['credits']['crew'].first['id'].should == 90367
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.should == 6
238
- @movie['images']['backdrops'].first['file_path'].should == '/mXuqM7ksHW1AJ30AInwJvJTAwut.jpg'
239
- @movie['images']['posters'].size.should == 9
240
- @movie['images']['posters'].first['file_path'].should == '/7eaHkUKAzfstt6XQCiXyuKiZUAw.jpg'
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.should == 2
245
- @movie['keywords']['keywords'].first['id'].should == 9715
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.should == 1
250
- @movie['releases']['countries'].first['release_date'].should == '2009-09-29'
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'].should == []
255
- @movie['trailers']['youtube'].size.should == 1
256
- @movie['trailers']['youtube'].first['name'].should == 'Official Preview Trailer'
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.should == 13
261
- @movie['translations']['translations'].first['name'].should == 'English'
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'].should == []
265
+ expect(@movie['reviews']['results']).to eq []
266
266
  end
267
267
 
268
268
  it 'should return lists' do
269
- @movie['lists']['results'].size.should == 4
270
- @movie['lists']['results'].first['id'].should == '51d6b52219c295172912ff1e'
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'].should == []
274
+ expect(@movie['changes']['changes']).to eq []
275
275
  end
276
276
  end
277
277
 
278
- describe "For a movies images" do
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(22855)
281
+ @movie = Tmdb::Movie.images(22_855)
283
282
  end
284
283
  end
285
284
 
286
- it "should return backdrops" do
285
+ it 'should return backdrops' do
287
286
  @movie['backdrops'].length == 4
288
287
  end
289
288
 
290
- it "should return posters" do
291
- @movie['posters'].should be_true
289
+ it 'should return posters' do
290
+ expect(@movie['posters']).to be_truthy
292
291
  end
293
-
294
292
  end
295
293
 
296
- describe "For other languages" do
297
-
294
+ describe 'For other languages' do
298
295
  before(:each) do
299
- Tmdb::Api.language("de")
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 "should return the german name" do
307
- @movie['title'].should == "Stirb Langsam"
303
+ it 'should return the german name' do
304
+ expect(@movie['title']).to eq 'Stirb Langsam'
308
305
  end
309
306
 
310
- it "should return the german description" do
311
- @movie['overview'].should == "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..."
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