Skip to content
Browse files

fix urls

  • Loading branch information...
1 parent 8dfd5ae commit 8bcd08500ff31d0381696101372b245d0d6494c5 @maddox committed Oct 26, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/trailers/movie.rb
  2. +1 −1 test/trailer_test.rb
View
2 lib/trailers/movie.rb
@@ -22,7 +22,7 @@ def initialize(options={})
# do trailer
trailer_hash = options['trailers'][0]
# inject the url if its not already there, this happens on search results
- trailer_hash['url'] = options['location'] unless trailer_hash['url']
+ trailer_hash['url'] = options['location']
# make trailer
@trailer = Trailer.new(trailer_hash)
end
View
2 test/trailer_test.rb
@@ -5,7 +5,7 @@ class TrailerTest < Test::Unit::TestCase
context "Trailer" do
setup do
@ats = Trailers::AppleTrailerSource.new
- @movies = @ats.find_by_name('transylmania')
+ @movies = @ats.find_by_name('toy story 3')
end

0 comments on commit 8bcd085

Please sign in to comment.
Something went wrong with that request. Please try again.