<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
+$:.unshift(File.join(File.dirname(__FILE__) ,'../../gems/georuby/lib/'))
 require 'rake'
 require 'rake/testtask'
 require 'rake/rdoctask'</diff>
      <filename>rakefile.rb</filename>
    </modified>
    <modified>
      <diff>@@ -147,7 +147,7 @@ class MigrationMysqlTest &lt; Test::Unit::TestCase
         t.column  &quot;City&quot;, :string,                :limit =&gt; 50
         t.column  &quot;StateProvince&quot;, :string,       :limit =&gt; 50
         t.column  &quot;PostalCode&quot;, :string,          :limit =&gt; 30
-        t.column  &quot;Geocode&quot;, :point, :null  =&gt; false
+        t.column  &quot;Geocode&quot;, :geometry, :null  =&gt; false #:geometry ok too : col.geometry_type test to change below
       end
     end
     
@@ -166,7 +166,7 @@ class MigrationMysqlTest &lt; Test::Unit::TestCase
     ActiveRecord::Schema.define() do
       add_index &quot;cx_geographiclocation&quot;, [&quot;addressline1&quot;], :name =&gt; &quot;ix_cx_geographiclocation_addressline1&quot;
       add_index &quot;cx_geographiclocation&quot;, [&quot;countryid&quot;], :name =&gt; &quot;ix_cx_geographiclocation_countryid&quot;
-      add_index &quot;cx_geographiclocation&quot;, &quot;Geocode&quot;, :spatial=&gt;true
+      add_index &quot;cx_geographiclocation&quot;, [&quot;Geocode&quot;], :spatial=&gt;true
     end
 
     #test index
@@ -174,7 +174,7 @@ class MigrationMysqlTest &lt; Test::Unit::TestCase
     assert(connection.indexes(&quot;cx_geographiclocation&quot;)[2].spatial)    
 
     #insertion points
-    1.upto(1000) do |i|
+    1.upto(10000) do |i|
       pt = CxGeographiclocation.new(&quot;CountryID&quot; =&gt; i, &quot;AddressLine1&quot; =&gt;&quot;Bouyoul&quot;, &quot;Geocode&quot; =&gt; Point.from_x_y(-180 + rand(360) + rand(),-90 + rand(180) + rand())) #insert floats
       assert(pt.save)
     end
@@ -193,7 +193,7 @@ class MigrationMysqlTest &lt; Test::Unit::TestCase
     pts =  CxGeographiclocation.find_all_by_Geocode([[-181 + rand(),-91 + rand()],[181 + rand(),91 + rand()]]) #selects all : range limits are float
     assert(pts)
     assert(pts.is_a?(Array))
-    assert_equal(1000,pts.length)
+    assert_equal(10000,pts.length)
     assert_equal(&quot;Bouyoul&quot;,pts[0].attributes[&quot;AddressLine1&quot;])
 
    end</diff>
      <filename>test/migration_mysql_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d0f0430f06965d2798b8e50c8edcb303d79c4437</id>
    </parent>
  </parents>
  <author>
    <name>Guilhem Vellut</name>
    <email>guilhem.vellut+rubyforge@gmail.com</email>
  </author>
  <url>http://github.com/melriffe/spatial_adapter/commit/5d08c1190ba4d94ecfe5b3398736a080669e7b91</url>
  <id>5d08c1190ba4d94ecfe5b3398736a080669e7b91</id>
  <committed-date>2008-03-02T04:27:39-08:00</committed-date>
  <authored-date>2008-03-02T04:27:39-08:00</authored-date>
  <message>preparing for gem release


git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@111 7a115c08-5c0b-0410-86fa-965754e9f858</message>
  <tree>2b697a1ae9c15c230b88c78ebe8815341f4078b3</tree>
  <committer>
    <name>Guilhem Vellut</name>
    <email>guilhem.vellut+rubyforge@gmail.com</email>
  </committer>
</commit>
