From 5921fabfa44cfe10a436e6f03935524811a54783 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Mon, 9 Mar 2009 09:37:33 -0400 Subject: [PATCH] run the test twice for debugging --- tests/test_cursor.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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