Sha256: 40b3092194085411851818b6f0eddd4ef617d2a6d3871ceb2c37e506594efc59

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

require 'test/test_helper'

# NOTE: assumes Mongo is running
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.error
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongo-1.0 test/db_connection_test.rb
mongo-0.20.1 test/db_connection_test.rb
mongo-0.20 test/db_connection_test.rb