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

Version Path
mongo-1.2.1 test/db_connection_test.rb
mongo-1.2.0 test/db_connection_test.rb
mongo-1.2.rc2 test/db_connection_test.rb
mongo-1.2.rc1 test/db_connection_test.rb
mongo-1.2.rc0 test/db_connection_test.rb
mongo-1.1.5 test/db_connection_test.rb
mongo-1.1.4 test/db_connection_test.rb
mongo-1.1.3 test/db_connection_test.rb
mongo-1.1.2 test/db_connection_test.rb
mongo-1.1.1 test/db_connection_test.rb
mongo-1.1 test/db_connection_test.rb
mongo-1.0.9 test/db_connection_test.rb