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.5.13 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.5.13 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.5.12 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.5.12 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.5.11 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.5.11 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.5.10 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.5.10 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.5.9 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.5.9 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.5.8 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.5.8 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.5.7 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.5.7 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.5.6 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.5.6 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.5.5 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.5.5 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.5.2 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.5.2 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb