Sha256: 57fcaf3146dbe850ed07658d5b38f656fdb8a4e02848b3eff36995b6b1d6bd7b
Contents?: true
Size: 540 Bytes
Versions: 9
Compression:
Stored size: 540 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'ogr' RSpec.describe OGR::Point25D do describe '#type' do context 'when created with data' do subject { OGR::Geometry.create_from_wkt(wkt) } let(:wkt) { 'POINT(1 2 3)' } it 'returns :wkbPoint25D' do expect(subject.type).to eq :wkbPoint25D end end context 'when created without data' do subject { described_class.new } it 'returns :wkbPoint' do expect(subject.type).to eq :wkbPoint end end end end
Version data entries
9 entries across 9 versions & 1 rubygems