Sha256: 965ce9ef9b938b88159e66a9e6435dec51f9ef2c121e574cb2afcf4b8a65af3b

Contents?: true

Size: 405 Bytes

Versions: 11

Compression:

Stored size: 405 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('ruby-mongo-demo')
    coll = db.collection('test')
    coll.remove
    db.error
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
mongo-0.19.3 test/db_connection_test.rb
mongo-0.19.2 test/db_connection_test.rb
mongo-0.19.1 test/db_connection_test.rb
mongo-0.19 test/db_connection_test.rb
kbaum-mongo-0.19 test/db_connection_test.rb
kbaum-mongo-0.18.3.2 test/db_connection_test.rb
kbaum-mongo-0.18.3p test/db_connection_test.rb
mongo-find_replace-0.18.3 test/test_db_connection.rb
mongo-0.18.3 test/test_db_connection.rb
mongo-0.18.2 test/test_db_connection.rb
mongo-0.18.1 test/test_db_connection.rb