diff --git a/tests/test_cursor.rb b/tests/test_cursor.rb index c2468de..95e081e 100644 --- a/tests/test_cursor.rb +++ b/tests/test_cursor.rb @@ -48,6 +48,14 @@ class CursorTest < Test::Unit::TestCase @@coll.find.each { |obj| count += obj['a'] } + + # do the same thing again for debugging + count2 = 0 + @@coll.find.each { |obj| + count2 += obj['a'] + } + + assert_equal count, count2 assert_equal 499501, count end