test/setup/url_mocks.rb in ruby-tmdb-0.0.21 vs test/setup/url_mocks.rb in ruby-tmdb-0.1.0
- old
+ new
@@ -20,9 +20,13 @@
stub_request(:get, Regexp.new(Tmdb.base_api_url + "Person.search/" + ".*")).to_return(file)
end
File.open(File.join(File.dirname(__FILE__), "..", "fixtures", "incorrect_api_url.txt")) do |file|
stub_request(:get, Regexp.new(Tmdb.base_api_url + "Movie.blarg/" + ".*")).to_return(file)
+
+ File.open(File.join(File.dirname(__FILE__), "..", "fixtures", "blank_result.txt")) do |file|
+ stub_request(:get, Regexp.new(Tmdb.base_api_url + "Search.empty/" + ".*")).to_return(file)
+ end
end
File.open(File.join(File.dirname(__FILE__), "..", "fixtures", "example_com.txt")) do |file|
stub_request(:get, Regexp.new("http://example.com.*")).to_return(file)
end
\ No newline at end of file