Sha256: d122613e0285473ce3e49bc3b84b68816ec544d1012d033ab31f530f76bdf40c

Contents?: true

Size: 297 Bytes

Versions: 4

Compression:

Stored size: 297 Bytes

Contents

require 'spec_helper'
require 'ogr/geometry'

RSpec.describe OGR::UnknownGeometry do
  it 'can be created from a pointer to a geometry' do
    geom_ptr = FFI::OGR::API.OGR_G_CreateGeometry(:wkbPoint)
    geom = described_class.new(geom_ptr)
    expect(geom).to be_a OGR::UnknownGeometry
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 spec/unit/ogr/geometries/unknown_geometry_spec.rb
ffi-gdal-1.0.0.beta6 spec/unit/ogr/geometries/unknown_geometry_spec.rb
ffi-gdal-1.0.0.beta5 spec/unit/ogr/geometries/unknown_geometry_spec.rb
ffi-gdal-1.0.0.beta4 spec/unit/ogr/geometries/unknown_geometry_spec.rb