Sha256: ddf8a93dbf044b42fea58f92e975fd0e67ff8c4350961edf61ff146e64e10c87

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

require 'spec_helper'
require 'ogr/geometry'

RSpec.describe OGR::Polygon do
  subject(:polygon) { OGR::Geometry.create_from_wkt(wkt) }
  let(:wkt) { 'POLYGON((10 10, 20 20, 30 30))' }

  it_behaves_like 'a geometry' do
    let(:geometry) { polygon }
  end

  describe '#to_multi_polygon' do
    it 'returns a MultiPolygon' do
      expect(subject.to_multi_polygon).to be_a OGR::MultiPolygon
    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/polygon_spec.rb
ffi-gdal-1.0.0.beta6 spec/unit/ogr/geometries/polygon_spec.rb