Skip to content
Snippets Groups Projects
Commit 4d00785a authored by Alex Reisner's avatar Alex Reisner
Browse files

Test that Bing returns empty array on invalid key.

parent bddfc1d9
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ class LookupTest < Test::Unit::TestCase ...@@ -35,7 +35,7 @@ class LookupTest < Test::Unit::TestCase
# keep test output clean: suppress timeout warning # keep test output clean: suppress timeout warning
orig = $VERBOSE; $VERBOSE = nil orig = $VERBOSE; $VERBOSE = nil
#Geocoder::Lookup.all_services_except_test.each do |l| #Geocoder::Lookup.all_services_except_test.each do |l|
[:yahoo, :yandex, :maxmind].each do |l| [:bing, :yahoo, :yandex, :maxmind].each do |l|
Geocoder.configure(:lookup => l) Geocoder.configure(:lookup => l)
set_api_key!(l) set_api_key!(l)
assert_equal [], Geocoder.search("invalid key") assert_equal [], Geocoder.search("invalid key")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment