Sha256: 634f8727a54f593a350a060981cb4b7b34d34276f80a4a4d11b2c34e29bb0338

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

require 'spec_helper'
require 'ogr'

RSpec.describe OGR::LineString25D do
  describe '#type' do
    context 'when created with data' do
      subject { OGR::Geometry.create_from_wkt(wkt) }
      let(:wkt) { 'LINESTRING(1 2 3, 2 2 3)' }

      it 'returns :wkbLineString25D' do
        expect(subject.type).to eq :wkbLineString25D
      end
    end

    context 'when created without data' do
      subject { described_class.new }

      it 'returns :wkbLineString' do
        expect(subject.type).to eq :wkbLineString
      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/line_string_25d_spec.rb
ffi-gdal-1.0.0.beta6 spec/unit/ogr/geometries/line_string_25d_spec.rb