Sha256: d48f6b3898f1c70d4f5c9691f632eeb8a00b0584ecea03137d6e78b15a2f85f0

Contents?: true

Size: 460 Bytes

Versions: 9

Compression:

Stored size: 460 Bytes

Contents

# rubocop:todo all
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

9 entries across 9 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/support/shared/auth_context.rb
mongo-2.20.1 spec/support/shared/auth_context.rb
mogno-2.20.0 spec/support/shared/auth_context.rb
mogno-1.0.0 spec/support/shared/auth_context.rb
mongo-2.20.0 spec/support/shared/auth_context.rb
mongo-2.19.3 spec/support/shared/auth_context.rb
mongo-2.19.2 spec/support/shared/auth_context.rb
mongo-2.19.1 spec/support/shared/auth_context.rb
mongo-2.19.0 spec/support/shared/auth_context.rb