new test for Undefined type, commented out due to Mongo bug
This commit is contained in:
parent
14210b0ca3
commit
1669e79241
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue