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

Add test for Bing reverse geocoding.

parent 22739512
No related branches found
No related tags found
No related merge requests found
...@@ -248,6 +248,12 @@ class ServicesTest < Test::Unit::TestCase ...@@ -248,6 +248,12 @@ class ServicesTest < Test::Unit::TestCase
# --- Bing --- # --- Bing ---
def test_bing_query_for_reverse_geocode
lookup = Geocoder::Lookup::Bing.new
url = lookup.query_url(Geocoder::Query.new([45.423733, -75.676333]))
assert_match /Locations\/45.423733/, url
end
def test_bing_result_components def test_bing_result_components
Geocoder.configure(:lookup => :bing) Geocoder.configure(:lookup => :bing)
set_api_key!(:bing) set_api_key!(:bing)
......
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