Skip to content

Commit

Permalink
Add spec for mongoid#46
Browse files Browse the repository at this point in the history
  • Loading branch information
cschell committed Jul 13, 2017
1 parent b22bcfc commit d8c144d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/mongoid/geospatial/fields/polygon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
expect(geom.radius_sphere(10)[1]).to be_within(0.001).of(0.001569)
end

it 'should not fail to demongoize BSON documents' do
expect {
Mongoid::Geospatial::Polygon.demongoize(BSON::Document.new)
}.not_to raise_exception()
end

describe 'with rgeo' do
# farm.area.should be_a RGeo::Geographic::SphericalPolygonImpl
end
Expand Down

0 comments on commit d8c144d

Please sign in to comment.