summaryrefslogtreecommitdiff
path: root/jstests/geo_s2edgecases.js
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2012-12-12 16:07:46 -0500
committerHari Khalsa <hkhalsa@10gen.com>2012-12-13 13:24:42 -0500
commit03471699fc78ae9f4e05ae71f159b6e2621ebfad (patch)
treecfff352c9b8eb46fe068e0fa7ddb2a489773fb27 /jstests/geo_s2edgecases.js
parentd72a2d27f583ef8c00eb8e78e469945fd50a1102 (diff)
downloadmongo-03471699fc78ae9f4e05ae71f159b6e2621ebfad.tar.gz
near only works w/points, rename intersect
Diffstat (limited to 'jstests/geo_s2edgecases.js')
-rwxr-xr-xjstests/geo_s2edgecases.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/geo_s2edgecases.js b/jstests/geo_s2edgecases.js
index 70b2b637509..7000841f574 100755
--- a/jstests/geo_s2edgecases.js
+++ b/jstests/geo_s2edgecases.js
@@ -32,9 +32,9 @@ t.insert({geo : penguin2})
t.ensureIndex( { geo : "2dsphere", nonGeo: 1 } )
-res = t.find({ "geo" : { "$intersect" : { "$geometry" : roundworldpoint} } });
+res = t.find({ "geo" : { "$geoIntersects" : { "$geometry" : roundworldpoint} } });
assert.eq(res.count(), 2);
-res = t.find({ "geo" : { "$intersect" : { "$geometry" : santapoint} } });
+res = t.find({ "geo" : { "$geoIntersects" : { "$geometry" : santapoint} } });
assert.eq(res.count(), 2);
-res = t.find({ "geo" : { "$intersect" : { "$geometry" : penguinpoint} } });
+res = t.find({ "geo" : { "$geoIntersects" : { "$geometry" : penguinpoint} } });
assert.eq(res.count(), 2);