Sha256: c4d0d57f1258757a342b24f30f3995119ba47e75ed865246ef5fef7b27f4aa26
Contents?: true
Size: 469 Bytes
Versions: 32
Compression:
Stored size: 469 Bytes
Contents
$LOAD_PATH[0,0] = File.join(File.dirname(__FILE__), '..', 'lib') require 'mongo' require 'test/unit' # NOTE: assumes Mongo is running class DBConnectionTest < Test::Unit::TestCase include XGen::Mongo::Driver def test_no_exceptions host = ENV['MONGO_RUBY_DRIVER_HOST'] || 'localhost' port = ENV['MONGO_RUBY_DRIVER_PORT'] || Mongo::DEFAULT_PORT db = Mongo.new(host, port).db('ruby-mongo-demo') coll = db.collection('test') coll.clear end end
Version data entries
32 entries across 32 versions & 2 rubygems