Now using ObjectID.new instead of ObjectID.new.to_s in the tests
This commit is contained in:
parent
e853e037c5
commit
45fe92bfbb
|
@ -1 +1,2 @@
|
|||
doc
|
||||
t
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue