Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

in multigeocoder, changed eval to klass.send for security. Also chang…

…ed test DB name and tried to apply the precision fix to GoogleGeocoder

git-svn-id: http://geokit.rubyforge.org/svn/trunk@26 9265c765-0211-4c68-b2df-6d1bd6e20c4d
  • Loading branch information...
commit 23bd1e5e85d52ee52845e3bec9affc8a760fe13b 1 parent a75963a
authored April 07, 2007
4  test/database.yml
@@ -3,10 +3,10 @@ mysql:
3 3
   host: localhost
4 4
   username: root
5 5
   password:
6  
-  database: acts_as_mappable_plugin_test
  6
+  database: geokit_plugin_test
7 7
 postgresql:
8 8
   adapter: postgresql
9 9
   host: localhost
10 10
   username: root
11 11
   password: 
12  
-  database: acts_as_mappable_plugin_test
  12
+  database: geokit_plugin_test
8  test/multi_geocoder_test.rb
@@ -33,4 +33,12 @@ def test_failure
33 33
     GeoKit::Geocoders::UsGeocoder.expects(:geocode).with(@address).returns(@failure)
34 34
     assert_equal @failure, GeoKit::Geocoders::MultiGeocoder.geocode(@address)    
35 35
   end
  36
+
  37
+  def test_invalid_provider
  38
+    temp=GeoKit::Geocoders::PROVIDER_ORDER
  39
+    GeoKit::Geocoders.const_set :PROVIDER_ORDER,[:bogus]
  40
+    assert_equal @failure, GeoKit::Geocoders::MultiGeocoder.geocode(@address)    
  41
+    GeoKit::Geocoders.const_set :PROVIDER_ORDER,temp
  42
+  end
  43
+
36 44
 end

0 notes on commit 23bd1e5

Please sign in to comment.
Something went wrong with that request. Please try again.