Sha256: c8c78ccbe745c49517a58b1be50b087c72e67e7af42db584ce4f97b92fa823f1
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
require 'spec_helper' require 'ogr' RSpec.describe OGR::Polygon25D do describe '#type' do context 'when created with data' do subject { OGR::Geometry.create_from_wkt(wkt) } let(:wkt) { 'POLYGON((0 0 1,0 1 1,1 1 1,0 0 1))' } it 'returns :wkbPolygon25D' do expect(subject.type).to eq :wkbPolygon25D end end context 'when created without data' do subject { described_class.new } it 'returns :wkbPolygon' do expect(subject.type).to eq :wkbPolygon 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/polygon_25d_spec.rb |
ffi-gdal-1.0.0.beta6 | spec/unit/ogr/geometries/polygon_25d_spec.rb |