Skip to content

Commit

Permalink
Fixed movie.rb to be consistent with TDD chapter.
Browse files Browse the repository at this point in the history
Added rcov gem to Gemfile since it's now referenced in TDD chapter screencast.
  • Loading branch information
armandofox committed Oct 29, 2011
1 parent 6de90a7 commit 6bf1c4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ group :test, :development do
gem 'cucumber-rails'
gem 'rspec-rails'
gem 'ruby-debug'
gem 'rcov'
end

# Bundle the extra gems:
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ GEM
thor (~> 0.14.6)
rake (0.9.2)
rbx-require-relative (0.0.5)
rcov (0.9.9)
rdoc (3.9.4)
rspec (2.6.0)
rspec-core (~> 2.6.0)
Expand Down Expand Up @@ -155,6 +156,7 @@ DEPENDENCIES
cucumber-rails
haml
rails (= 3.1)
rcov
rspec-rails
ruby-debug
ruby-tmdb
Expand Down
1 change: 0 additions & 1 deletion app/models/movie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def self.find_in_tmdb(string)
TmdbMovie.find(:title => string)
rescue ArgumentError => tmdb_error
raise Movie::InvalidKeyError, tmdb_error.message
end
rescue RuntimeError => tmdb_error
raise Movie::InvalidKeyError, tmdb_error.message
end
Expand Down

0 comments on commit 6bf1c4d

Please sign in to comment.