Sha256: 0cac73b492ef9198dae09b16a41c1f5519ceb3a86934e31268d4b8820eb3cb4f

Contents?: true

Size: 342 Bytes

Versions: 4

Compression:

Stored size: 342 Bytes

Contents

require 'spec_helper'
require 'ogr/geometry'

RSpec.describe OGR::NoneGeometry do
  skip 'Not sure how to instantiate one of these'

  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::NoneGeometry
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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