Sha256: 0340a7131492a606e187f75d5d38b0289b2ac1c87954a067c5b50b93f2f43835

Contents?: true

Size: 441 Bytes

Versions: 16

Compression:

Stored size: 441 Bytes

Contents

shared_context 'auth unit tests' do
  let(:generation_manager) do
    Mongo::Server::ConnectionPool::GenerationManager.new(server: server)
  end

  let(:pool) do
    double('pool').tap do |pool|
      allow(pool).to receive(:generation_manager).and_return(generation_manager)
    end
  end

  let(:connection) do
    Mongo::Server::Connection.new(server, SpecConfig.instance.monitoring_options.merge(
      connection_pool: pool))
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mongo-2.16.4 spec/support/shared/auth_context.rb
mongo-2.17.4 spec/support/shared/auth_context.rb
mongo-2.18.3 spec/support/shared/auth_context.rb
mongo-2.18.2 spec/support/shared/auth_context.rb
mongo-2.17.3 spec/support/shared/auth_context.rb
mongo-2.18.1 spec/support/shared/auth_context.rb
mongo-2.18.0 spec/support/shared/auth_context.rb
mongo-2.17.2 spec/support/shared/auth_context.rb
mongo-2.16.3 spec/support/shared/auth_context.rb
mongo-2.18.0.beta1 spec/support/shared/auth_context.rb
mongo-2.16.2 spec/support/shared/auth_context.rb
mongo-2.17.1 spec/support/shared/auth_context.rb
mongo-2.16.1 spec/support/shared/auth_context.rb
mongo-2.17.0 spec/support/shared/auth_context.rb
mongo-2.16.0 spec/support/shared/auth_context.rb
mongo-2.16.0.alpha1 spec/support/shared/auth_context.rb