lib/rubicure/movie.rb in rubicure-0.3.1 vs lib/rubicure/movie.rb in rubicure-0.3.2
- old
+ new
@@ -43,10 +43,10 @@
# @param movie_name [Symbol]
# @return [Rubicure::Movie]
# @raise arg is invalid
def find(movie_name)
- raise "unknown movie: #{movie_name}" unless valid?(movie_name)
+ raise UnknownMovieError, "unknown movie: #{movie_name}" unless valid?(movie_name)
@cache ||= {}
unless @cache[movie_name]
movie_config = config[movie_name] || {}
movie_config.reject! { |_k, v| v.nil? }