From 5dc64d8c1da38b9853b6e0e91da52e53c24e71c4 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Tue, 28 Jul 2009 15:00:54 -0400 Subject: [PATCH] minor: more tests that already pass --- tests/test_db_api.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_db_api.rb b/tests/test_db_api.rb index 993c724..044e8a2 100644 --- a/tests/test_db_api.rb +++ b/tests/test_db_api.rb @@ -650,6 +650,9 @@ class DBAPITest < Test::Unit::TestCase @@coll.find(:_id => id).to_a.each do |doc| assert_equal "world", doc["hello"] end + + id = ObjectID.from_string(id.to_s) + assert_equal "world", @@coll.find_first(:_id => id)["hello"] end def test_save_with_object_that_has_id_but_does_not_actually_exist_in_collection