mongo-ruby-driver/test/mongo-qa/test1

12 lines
238 B
Ruby

#!/usr/bin/env ruby
require File.join(File.dirname(__FILE__), '_common.rb')
db = Connection.new(DEFAULT_HOST, DEFAULT_PORT).db(DEFAULT_DB)
coll = db.collection('part1')
if $DEBUG
coll.drop
end
100.times { |i| coll.insert('x' => i) }