diff --git a/test/services_test.rb b/test/services_test.rb index e084a40c382eecacbf89c943364351118188d42e..04b7d0104aa106e98532c699e23ae17ebbb1b790 100644 --- a/test/services_test.rb +++ b/test/services_test.rb @@ -248,6 +248,12 @@ class ServicesTest < Test::Unit::TestCase # --- 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 Geocoder.configure(:lookup => :bing) set_api_key!(:bing)