spec/postgresql/migration_spec.rb in spatial_adapter-1.0.0 vs spec/postgresql/migration_spec.rb in spatial_adapter-1.1.0
- old
+ new
@@ -24,11 +24,11 @@
end
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.geometry_type.should == type
geom_column.should_not be_geographic
geom_column.with_z.should == false
geom_column.with_m.should == false
geom_column.srid.should == -1
@@ -43,11 +43,11 @@
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.geometry_type.should == type
geom_column.should be_geographic
geom_column.with_z.should == false
geom_column.with_m.should == false
#geom_column.srid.should == 4326 # SRID is currently irrelevant for geography columns
@@ -80,11 +80,11 @@
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
geom_column.geometry_type.should == :point
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.with_z.should == false
geom_column.with_m.should == true
geom_column.srid.should == -1
end
@@ -98,11 +98,11 @@
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
geom_column.geometry_type.should == :point
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.with_z.should == true
geom_column.with_m.should == true
geom_column.srid.should == -1
end
@@ -131,11 +131,11 @@
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
geom_column.geometry_type.should == :point
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.should be_geographic
geom_column.with_z.should == false
geom_column.with_m.should == true
end
@@ -150,11 +150,11 @@
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
geom_column.geometry_type.should == :point
geom_column.should be_geographic
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.with_z.should == true
geom_column.with_m.should == true
end
@@ -166,11 +166,11 @@
end
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.geometry_type.should == :geometry
geom_column.with_z.should == false
geom_column.with_m.should == false
geom_column.srid.should == 4326
end
@@ -195,11 +195,11 @@
add_column :migrated_geometry_models, :geom, type
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.geometry_type.should == type
geom_column.with_z.should == false
geom_column.with_m.should == false
geom_column.srid.should == -1
end
@@ -210,11 +210,11 @@
add_column :migrated_geometry_models, :geom, :point, :with_z => true
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.geometry_type.should == :point
geom_column.with_z.should == true
geom_column.with_m.should == false
geom_column.srid.should == -1
end
@@ -225,11 +225,11 @@
add_column :migrated_geometry_models, :geom, :point, :with_m => true
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.geometry_type.should == :point
geom_column.with_z.should == false
geom_column.with_m.should == true
geom_column.srid.should == -1
end
@@ -240,11 +240,11 @@
add_column :migrated_geometry_models, :geom, :point, :with_z => true, :with_m => true
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.geometry_type.should == :point
geom_column.with_z.should == true
geom_column.with_m.should == true
geom_column.srid.should == -1
end
@@ -254,11 +254,11 @@
add_column :migrated_geometry_models, :geom, :point, :with_z => true, :geographic => true
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.should be_geographic
geom_column.geometry_type.should == :point
geom_column.with_z.should == true
geom_column.with_m.should == false
end
@@ -269,11 +269,11 @@
add_column :migrated_geometry_models, :geom, :point, :with_m => true, :geographic => true
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.should be_geographic
geom_column.geometry_type.should == :point
geom_column.with_z.should == false
geom_column.with_m.should == true
end
@@ -284,11 +284,11 @@
add_column :migrated_geometry_models, :geom, :point, :with_z => true, :with_m => true, :geographic => true
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.should be_geographic
geom_column.geometry_type.should == :point
geom_column.with_z.should == true
geom_column.with_m.should == true
end
@@ -299,10 +299,10 @@
end
geom_column = @connection.columns(:migrated_geometry_models).select{|c| c.name == 'geom'}.first
geom_column.should be_a(SpatialAdapter::SpatialColumn)
geom_column.geometry_type.should == :geometry
- geom_column.type.should == :geometry
+ geom_column.type.should == :string
geom_column.with_z.should == false
geom_column.with_m.should == false
geom_column.srid.should == 4326
end
end
\ No newline at end of file