test/db_test.rb in mongo-1.0.7 vs test/db_test.rb in mongo-1.0.8

- old
+ new

@@ -4,11 +4,11 @@ require 'stringio' require 'logger' class TestPKFactory def create_pk(row) - row['_id'] ||= BSON::ObjectID.new + row['_id'] ||= BSON::ObjectId.new row end end class DBTest < Test::Unit::TestCase @@ -100,10 +100,10 @@ row = coll.find_one({'name' => 'Fred'}) oid = row['_id'] assert_not_nil oid assert_equal insert_id, oid - oid = BSON::ObjectID.new + oid = BSON::ObjectId.new data = {'_id' => oid, 'name' => 'Barney', 'age' => 41} coll.insert(data) row = coll.find_one({'name' => data['name']}) db_oid = row['_id'] assert_equal oid, db_oid