Sha256: 200641a4161ece1b9fe7a1dcef1a9e376494836448138304415b68ec4545a74f
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 Bytes
Contents
require 'spec_helper' require 'ogr/geometry' RSpec.describe OGR::Polygon do subject(:polygon) { OGR::Geometry.create_from_wkt(wkt) } let(:wkt) { 'POLYGON((100 100, 200 200, 300 300))' } 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.beta5 | spec/unit/ogr/geometries/polygon_spec.rb |
ffi-gdal-1.0.0.beta4 | spec/unit/ogr/geometries/polygon_spec.rb |