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.3.4 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.3.4 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.3.3 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.3.3 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.3.2 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.3.2 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.3.1 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.3.1 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.3.0 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classiccms-0.3.0 vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.2.4.pre vendor/bundle/gems/mongo-1.6.2/test/db_connection_test.rb
classiccms-0.2.4.pre vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
mongo-1.6.2 test/db_connection_test.rb
classicCMS-0.2.3 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classicCMS-0.2.2 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classicCMS-0.2.1 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classicCMS-0.2.0 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
classicCMS-0.1.2 vendor/bundle/gems/mongo-1.6.1/test/db_connection_test.rb
mongo-1.6.1 test/db_connection_test.rb
mongo-1.6.0 test/db_connection_test.rb