Sha256: 960ad4658cbb2f485144a1ddc07cd5d7699e29a67a093c0c05c2e05e27c3e490

Contents?: true

Size: 368 Bytes

Versions: 8

Compression:

Stored size: 368 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.error
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mongo-1.0.8 test/db_connection_test.rb
mongo-1.0.7 test/db_connection_test.rb
mongo-1.0.6 test/db_connection_test.rb
mongo-1.0.5 test/db_connection_test.rb
mongo-1.0.4 test/db_connection_test.rb
mongo-1.0.3 test/db_connection_test.rb
mongo-1.0.2 test/db_connection_test.rb
mongo-1.0.1 test/db_connection_test.rb