Sha256: 73f72f31b2adab743c4b386a2a436b6fb2084a90f8643e89b5805d16507040a0

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 spec/unit/ogr/geometries/point_25d_spec.rb
ffi-gdal-1.0.0.beta6 spec/unit/ogr/geometries/point_25d_spec.rb