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