Sha256: 6b64a3fffd5346f7ce9205037668cd7371800f5be6fc52350d3115be48814f9e

Contents?: true

Size: 536 Bytes

Versions: 23

Compression:

Stored size: 536 Bytes

Contents

require 'spec_helper'

describe Mongo::Monitoring::Event::Cmap::PoolClosed do

  describe '#summary' do

    let(:address) do
      Mongo::Address.new('127.0.0.1:27017')
    end

    declare_topology_double

    let(:pool) do
      server = make_server(:primary)
      Mongo::Server::ConnectionPool.new(server)
    end

    let(:event) do
      described_class.new(address, pool)
    end

    it 'renders correctly' do
      expect(event.summary).to eq("#<PoolClosed address=127.0.0.1:27017 pool=0x#{pool.object_id}>")
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
mongo-2.13.3 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.14.1 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.15.0.alpha spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.13.2 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.14.0 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.14.0.rc1 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.13.1 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.12.4 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.11.6 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.13.0 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.12.3 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.13.0.rc1 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.12.2 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.11.5 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.13.0.beta1 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.12.1 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.12.0.rc0 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.11.4 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.11.3 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb
mongo-2.11.2 spec/mongo/monitoring/event/cmap/pool_closed_spec.rb