Sha256: e5836c0661b24a7b30e1202cafa447b532d839a3811c424c7c471ad6a4361200

Contents?: true

Size: 523 Bytes

Versions: 13

Compression:

Stored size: 523 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper.rb'

describe "ActsAsGeom" do

  before(:each) do
    class DiffColumn < ActiveRecord::Base
      acts_as_geom :ponto
    end
    
    class NotInDb < ActiveRecord::Base
      acts_as_geom :geom
    end
  end

  it "should get the geom type" do
    City.get_geom_type(:geom).should eql(:polygon)
  end

  it "should not interfere with migrations" do
    NotInDb.get_geom_type(:geom).should be_nil
  end

  it "should query a diff column name" do
   # DiffColumn
  end

end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
nofxx-postgis_adapter-0.2.1 spec/postgis_adapter/acts_as_geom_spec.rb
nofxx-postgis_adapter-0.2.2 spec/postgis_adapter/acts_as_geom_spec.rb
nofxx-postgis_adapter-0.3.0 spec/postgis_adapter/acts_as_geom_spec.rb
nofxx-postgis_adapter-0.3.1 spec/postgis_adapter/acts_as_geom_spec.rb
nofxx-postgis_adapter-0.3.3 spec/postgis_adapter/acts_as_geom_spec.rb
nofxx-postgis_adapter-0.3.4 spec/postgis_adapter/acts_as_geom_spec.rb
nofxx-postgis_adapter-0.3.8 spec/postgis_adapter/acts_as_geom_spec.rb
postgis_adapter-0.3.8 spec/postgis_adapter/acts_as_geom_spec.rb
postgis_adapter-0.3.4 spec/postgis_adapter/acts_as_geom_spec.rb
postgis_adapter-0.3.0 spec/postgis_adapter/acts_as_geom_spec.rb
postgis_adapter-0.3.5 spec/postgis_adapter/acts_as_geom_spec.rb
postgis_adapter-0.2.3 spec/postgis_adapter/acts_as_geom_spec.rb
postgis_adapter-0.2.1 spec/postgis_adapter/acts_as_geom_spec.rb