diff --git a/test/cursor_test.rb b/test/cursor_test.rb index 09626aa..86ae9f1 100644 --- a/test/cursor_test.rb +++ b/test/cursor_test.rb @@ -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 diff --git a/test/db_api_test.rb b/test/db_api_test.rb index c32ea19..a301653 100644 --- a/test/db_api_test.rb +++ b/test/db_api_test.rb @@ -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