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
classiccms-0.7.5 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.7.5 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.7.4 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.7.4 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.7.3 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.7.3 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.7.2 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.7.2 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.7.1 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.7.1 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.7.0 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.7.0 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.6.9 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.6.9 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.6.8 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.6.8 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.6.7 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.6.7 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.6.6 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.6.6 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb