test that already passes

This commit is contained in:
Mike Dirolf 2009-08-13 10:29:08 -04:00
parent 4963da9e89
commit acc1076df7

View File

@ -46,6 +46,15 @@ class DBAPITest < Test::Unit::TestCase
assert docs.detect { |row| row['b'] == 4 }
end
def test_save_ordered_hash
oh = OrderedHash.new
oh['a'] = -1
oh['b'] = 'foo'
oid = @@coll.save(oh)
assert_equal 'foo', @@coll.find_first(:_id => oid)['b']
end
def test_insert_multiple
ids = @@coll.insert({'a' => 2}, {'b' => 3})