Sha256: ef20a8ef848615b07a7142cea3ed33e355c7d1213fa42c8d92a32af5dccc7563
Contents?: true
Size: 638 Bytes
Versions: 1
Compression:
Stored size: 638 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' class DiffColumn < ActiveRecord::Base acts_as_geom :ponto end class NotInDb < ActiveRecord::Base acts_as_geom :geom end describe "ActsAsGeom" do it "should get the geom type" do City.connection.columns("cities").select { |c| c.name == "geom" }[0] City.get_geom_type(:geom).should eql(:polygon) end it "should get the geom type" do Position.get_geom_type(:geom).should eql(:point) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nofxx-postgis_adapter-0.5.7 | spec/postgis_adapter/acts_as_geom_spec.rb |