Sha256: 0238cf10cb1a52c7819049d67e94e7fbbb4958f0c420ffd772021997f9ab76bd
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 Bytes
Contents
require 'spec_helper' require 'ogr' RSpec.describe OGR::MultiPolygon25D do describe '#type' do context 'when created with data' do subject { OGR::Geometry.create_from_wkt(wkt) } let(:wkt) { 'MULTIPOLYGON(((0 0 1,0 1 1,1 1 1,0 0 1)),((0 0 5,1 1 5,1 0 5,0 0 5)))' } it 'returns :wkbMultiPolygon25D' do expect(subject.type).to eq :wkbMultiPolygon25D end end context 'when created without data' do subject { described_class.new } it 'returns :wkbMultiPolygon' do expect(subject.type).to eq :wkbMultiPolygon end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.0.0.beta7 | spec/unit/ogr/geometries/multi_polygon_25d_spec.rb |
ffi-gdal-1.0.0.beta6 | spec/unit/ogr/geometries/multi_polygon_25d_spec.rb |