Sha256: 3895d36ca6bf0c5437173de3a1fc061682021494bbf321108fc1ff40d1e5226f
Contents?: true
Size: 379 Bytes
Versions: 132
Compression:
Stored size: 379 Bytes
Contents
require './test/test_helper' class DBConnectionTest < Test::Unit::TestCase include Mongo def test_no_exceptions host = ENV['MONGO_RUBY_DRIVER_HOST'] || 'localhost' port = ENV['MONGO_RUBY_DRIVER_PORT'] || Connection::DEFAULT_PORT db = Connection.new(host, port).db(MONGO_TEST_DB) coll = db.collection('test') coll.remove db.get_last_error end end
Version data entries
132 entries across 86 versions & 7 rubygems