new test for Undefined type, commented out due to Mongo bug

This commit is contained in:
Jim Menard 2009-02-03 12:16:21 -05:00
parent 14210b0ca3
commit 1669e79241
1 changed files with 13 additions and 0 deletions

View File

@ -405,4 +405,17 @@ class DBAPITest < Test::Unit::TestCase
end
end
# TODO this test fails with error message "Undefed Before end of object"
# That is a database error. The undefined type may go away.
# def test_insert_undefined
# doc = {'undef' => Undefined.new}
# @coll.clear
# @coll.insert(doc)
# p @db.error # DEBUG
# assert_equal 1, @coll.count
# row = @coll.find().next_object
# assert_not_nil row
# end
end