minor: test fixes

This commit is contained in:
Kyle Banker 2010-11-11 17:55:10 -05:00
parent 29dfe390c5
commit a56636b3b2
2 changed files with 0 additions and 17 deletions

View File

@ -182,10 +182,6 @@ class CursorTest < Test::Unit::TestCase
end
def test_limit_exceptions
assert_raise ArgumentError do
cursor = @@coll.find().limit('not-an-integer')
end
cursor = @@coll.find()
firstResult = cursor.next_document
assert_raise InvalidOperation, "Cannot modify the query once it has been run or closed." do
@ -216,10 +212,6 @@ class CursorTest < Test::Unit::TestCase
end
def test_skip_exceptions
assert_raise ArgumentError do
cursor = @@coll.find().skip('not-an-integer')
end
cursor = @@coll.find()
firstResult = cursor.next_document
assert_raise InvalidOperation, "Cannot modify the query once it has been run or closed." do

View File

@ -713,16 +713,7 @@ class DBAPITest < Test::Unit::TestCase
a.rename("bar")
assert_equal 0, a.count()
assert_equal 2, b.count()
assert_equal 1, b.find().to_a()[0]["x"]
assert_equal 2, b.find().to_a()[1]["x"]
b.rename(:foo)
assert_equal 2, a.count()
assert_equal 0, b.count()
end
# doesn't really test functionality, just that the option is set correctly