Sha256: a28924eeb77a223a59be982bc67bedb8b26d8ba85a59a6a57abb6e638061930e

Contents?: true

Size: 851 Bytes

Versions: 5

Compression:

Stored size: 851 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'ogr/data_source'

RSpec.describe OGR::DataSource do
  context 'Memory datasource' do
    subject(:data_source) do
      OGR::Driver.by_name('Memory').create_data_source('test')
    end

    describe '#can_create_layer?' do
      subject { data_source.can_create_layer? }
      it { is_expected.to eq true }
    end

    describe '#can_delete_layer?' do
      subject { data_source.can_delete_layer? }
      it { is_expected.to eq true }
    end

    describe '#can_create_geometry_field_after_create_layer?' do
      subject { data_source.can_create_geometry_field_after_create_layer? }
      it { is_expected.to eq true }
    end

    describe '#supports_curve_geometries?' do
      subject { data_source.supports_curve_geometries? }
      it { is_expected.to eq true }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta16 spec/unit/ogr/data_source_mixins/capability_methods_spec.rb
ffi-gdal-1.0.0.beta15 spec/unit/ogr/data_source_mixins/capability_methods_spec.rb
ffi-gdal-1.0.0.beta14 spec/unit/ogr/data_source_mixins/capability_methods_spec.rb
ffi-gdal-1.0.0.beta13 spec/unit/ogr/data_source_mixins/capability_methods_spec.rb
ffi-gdal-1.0.0.beta12 spec/unit/ogr/data_source_mixins/capability_methods_spec.rb