Sha256: ce75aea64997f395d690310661d552122ec4c51005d30186a62392b95014bee9
Contents?: true
Size: 572 Bytes
Versions: 9
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true 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
9 entries across 9 versions & 1 rubygems