test/setup/url_mocks.rb in ruby-tmdb-0.1.4 vs test/setup/url_mocks.rb in ruby-tmdb-0.2.1

- old
+ new

@@ -1,8 +1,7 @@ def register_api_url_stubs unless(TEST_LIVE_API) - File.open(File.join(File.dirname(__FILE__), "..", "fixtures", "movie_search.txt")) do |file| stub_request(:get, Regexp.new(Tmdb.base_api_url + "Movie.search/" + ".*")).to_return(file) end @@ -10,9 +9,13 @@ stub_request(:get, Regexp.new(Tmdb.base_api_url + "Movie.getInfo/" + ".*")).to_return(file) end File.open(File.join(File.dirname(__FILE__), "..", "fixtures", "movie_imdb_lookup.txt")) do |file| stub_request(:get, Regexp.new(Tmdb.base_api_url + "Movie.imdbLookup/" + ".*")).to_return(file) + end + + File.open(File.join(File.dirname(__FILE__), "..", "fixtures", "movie_browse.txt")) do |file| + stub_request(:get, Regexp.new(Tmdb.base_api_url + "Movie.browse/" + ".*")).to_return(file) end File.open(File.join(File.dirname(__FILE__), "..", "fixtures", "person_get_info.txt")) do |file| stub_request(:get, Regexp.new(Tmdb.base_api_url + "Person.getInfo/" + ".*")).to_return(file) end \ No newline at end of file