Sha256: 60bf9f13d3128f1991e36347802dfbe7d08cf661e117f14f9a620fb5d7d9c13d

Contents?: true

Size: 919 Bytes

Versions: 8

Compression:

Stored size: 919 Bytes

Contents

require 'lite_spec_helper'

# Replica set name can be overridden via replicaSet parameter in MONGODB_URI
# environment variable or by specifying RS_NAME environment variable when
# not using MONGODB_URI.
TEST_SET = 'ruby-driver-rs'

require 'support/authorization'
require 'support/primary_socket'
require 'support/constraints'
require 'support/cluster_config'
require 'support/cluster_tools'
require 'rspec/retry'
require 'support/monitoring_ext'
require 'support/local_resource_registry'

RSpec.configure do |config|
  config.include(Authorization)
  config.extend(Constraints)

  config.before(:all) do
    if ClusterConfig.instance.fcv_ish >= '3.6'
      kill_all_server_sessions
    end
  end

  config.after do
    LocalResourceRegistry.instance.close_all
    ClientRegistry.instance.close_local_clients
  end
end

# require all shared examples
Dir['./spec/support/shared/*.rb'].sort.each { |file| require file }

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mongo-2.11.6 spec/spec_helper.rb
mongo-2.11.5 spec/spec_helper.rb
mongo-2.11.4 spec/spec_helper.rb
mongo-2.11.3 spec/spec_helper.rb
mongo-2.11.2 spec/spec_helper.rb
mongo-2.11.1 spec/spec_helper.rb
mongo-2.11.0 spec/spec_helper.rb
mongo-2.11.0.rc0 spec/spec_helper.rb