count doesn't exist on cursors, just collections

This commit is contained in:
Mike Dirolf 2009-03-12 18:38:11 -04:00
parent 888d2bac7c
commit 4e406ac7c9

View File

@ -447,8 +447,8 @@ class DBAPITest < Test::Unit::TestCase
@@coll.insert('a' => 3)
assert_equal 3, @@coll.count
assert_equal 1, @@coll.find('$where' => Code.new('this.a > 2')).count
assert_equal 2, @@coll.find('$where' => Code.new('this.a > i', {'i' => 1})).count
assert_equal 1, @@coll.count('$where' => Code.new('this.a > 2'))
assert_equal 2, @@coll.count('$where' => Code.new('this.a > i', {'i' => 1}))
end
def test_hint