Skip to content
Snippets Groups Projects
Commit 50c1ac7d authored by Jed Schneider's avatar Jed Schneider
Browse files

reverting a couple of last changes

parent 1dfca7cf
No related branches found
No related tags found
No related merge requests found
...@@ -8,13 +8,11 @@ class ServicesTest < Test::Unit::TestCase ...@@ -8,13 +8,11 @@ class ServicesTest < Test::Unit::TestCase
Geocoder::Lookup.all_services_except_test.each do |l| Geocoder::Lookup.all_services_except_test.each do |l|
next if l == :google_premier # TODO: need to set keys to test next if l == :google_premier # TODO: need to set keys to test
next if l == :freegeoip # does not use query string next if l == :freegeoip # does not use query string
# mapquest seems to like URI instead of CGI escaping
regex = /one_in_the_hand=two\+in\+the\+bush/
url = Geocoder::Lookup.get(l).send(:query_url, Geocoder::Query.new( url = Geocoder::Lookup.get(l).send(:query_url, Geocoder::Query.new(
"test", :params => {:one_in_the_hand => "two in the bush"} "test", :params => {:one_in_the_hand => "two in the bush"}
)) ))
assert_match(regex, url, assert_match /one_in_the_hand=two\+in\+the\+bush/, url,
"Lookup #{l} does not appear to support arbitrary params in URL") "Lookup #{l} does not appear to support arbitrary params in URL"
end end
end end
...@@ -48,7 +46,7 @@ class ServicesTest < Test::Unit::TestCase ...@@ -48,7 +46,7 @@ class ServicesTest < Test::Unit::TestCase
"Some Intersection", "Some Intersection",
:bounds => [[40.0, -120.0], [39.0, -121.0]] :bounds => [[40.0, -120.0], [39.0, -121.0]]
)) ))
assert_match(/bounds=40.0+%2C-120.0+%7C39.0+%2C-121.0+/, url) assert_match /bounds=40.0+%2C-120.0+%7C39.0+%2C-121.0+/, url
end end
# --- Google Premier --- # --- Google Premier ---
......
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