From 45fe92bfbb854ac95871099291c34ca0b6e0f202 Mon Sep 17 00:00:00 2001 From: Adrian Madrid Date: Tue, 9 Dec 2008 12:36:35 -0700 Subject: [PATCH] Now using ObjectID.new instead of ObjectID.new.to_s in the tests --- .gitignore | 1 + tests/test_db_api.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8e695ec..2d82228 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ doc +t diff --git a/tests/test_db_api.rb b/tests/test_db_api.rb index 08b84f5..a063848 100644 --- a/tests/test_db_api.rb +++ b/tests/test_db_api.rb @@ -13,7 +13,6 @@ class DBAPITest < Test::Unit::TestCase @coll = @db.collection('test') @coll.clear @r1 = @coll.insert('_id' => new_oid, 'a' => 1) # collection not created until it's used - @r1 = @coll.insert('a' => 1) # collection not created until it's used @coll_full_name = 'ruby-mongo-test.test' end @@ -138,6 +137,8 @@ class DBAPITest < Test::Unit::TestCase assert_equal 2, docs.size assert_equal 2, docs.first['a'] end + + # def test_ def test_close @db.close