count doesn't exist on cursors, just collections
This commit is contained in:
parent
888d2bac7c
commit
4e406ac7c9
@ -447,8 +447,8 @@ class DBAPITest < Test::Unit::TestCase
|
|||||||
@@coll.insert('a' => 3)
|
@@coll.insert('a' => 3)
|
||||||
|
|
||||||
assert_equal 3, @@coll.count
|
assert_equal 3, @@coll.count
|
||||||
assert_equal 1, @@coll.find('$where' => Code.new('this.a > 2')).count
|
assert_equal 1, @@coll.count('$where' => Code.new('this.a > 2'))
|
||||||
assert_equal 2, @@coll.find('$where' => Code.new('this.a > i', {'i' => 1})).count
|
assert_equal 2, @@coll.count('$where' => Code.new('this.a > i', {'i' => 1}))
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_hint
|
def test_hint
|
||||||
|
Loading…
Reference in New Issue
Block a user