spec/unit/ogr/geometries/point_spec.rb in ffi-gdal-1.0.0.beta11 vs spec/unit/ogr/geometries/point_spec.rb in ffi-gdal-1.0.0.beta12
- old
+ new
@@ -235,11 +235,11 @@
context 'empty point' do
let(:wkt) { 'POINT EMPTY' }
describe '#coordinate_dimension' do
- specify { expect(subject.coordinate_dimension).to eq 0 }
+ specify { expect(subject.coordinate_dimension).to eq 2 }
end
describe '#geometry_count' do
specify { expect(subject.geometry_count).to be_zero }
end
@@ -297,11 +297,11 @@
from([]).to([5.0, 6.0])
end
end
describe '#envelope' do
- it 'returns nil' do
- expect(subject.envelope).to be_nil
+ it 'returns an OGR::Envelope' do
+ expect(subject.envelope).to be_a OGR::Envelope
end
end
end
end