minor: more tests that already pass

This commit is contained in:
Mike Dirolf 2009-07-28 15:00:54 -04:00
parent 4de3f61787
commit 5dc64d8c1d

View File

@ -650,6 +650,9 @@ class DBAPITest < Test::Unit::TestCase
@@coll.find(:_id => id).to_a.each do |doc| @@coll.find(:_id => id).to_a.each do |doc|
assert_equal "world", doc["hello"] assert_equal "world", doc["hello"]
end end
id = ObjectID.from_string(id.to_s)
assert_equal "world", @@coll.find_first(:_id => id)["hello"]
end end
def test_save_with_object_that_has_id_but_does_not_actually_exist_in_collection def test_save_with_object_that_has_id_but_does_not_actually_exist_in_collection