Sha256: 98a3694220e3fdf62f2efcb764d0de4f5e627432eab40a4daacf5010b9d661b0

Contents?: true

Size: 803 Bytes

Versions: 6

Compression:

Stored size: 803 Bytes

Contents

# frozen_string_literal: true
# rubocop:todo all

require 'lite_spec_helper'

require 'mrss/constraints'
require 'mrss/cluster_config'

ClusterConfig = Mrss::ClusterConfig

require 'support/constraints'
require 'support/authorization'
require 'support/primary_socket'
require 'support/cluster_tools'
require 'support/monitoring_ext'

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

  config.before(:all) do
    if SpecConfig.instance.kill_all_server_sessions?
      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

6 entries across 6 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/spec_helper.rb
mongo-2.20.1 spec/spec_helper.rb
mogno-2.20.0 spec/spec_helper.rb
mogno-1.0.0 spec/spec_helper.rb
mongo-2.20.0 spec/spec_helper.rb
mongo-2.19.3 spec/spec_helper.rb