Sha256: 764bc36d9e3937fc1bbb657355dc8db6a51826d069fb8045ec0b1bc75ee5debb

Contents?: true

Size: 373 Bytes

Versions: 9

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

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

9 entries across 9 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta16 spec/unit/ogr/geometries/none_geometry_spec.rb
ffi-gdal-1.0.0.beta15 spec/unit/ogr/geometries/none_geometry_spec.rb
ffi-gdal-1.0.0.beta14 spec/unit/ogr/geometries/none_geometry_spec.rb
ffi-gdal-1.0.0.beta13 spec/unit/ogr/geometries/none_geometry_spec.rb
ffi-gdal-1.0.0.beta12 spec/unit/ogr/geometries/none_geometry_spec.rb
ffi-gdal-1.0.0.beta11 spec/unit/ogr/geometries/none_geometry_spec.rb
ffi-gdal-1.0.0.beta10 spec/unit/ogr/geometries/none_geometry_spec.rb
ffi-gdal-1.0.0.beta9 spec/unit/ogr/geometries/none_geometry_spec.rb
ffi-gdal-1.0.0.beta8 spec/unit/ogr/geometries/none_geometry_spec.rb