Sha256: ecf4f6ac9998a633e6ad95b74019144c76796cd86b1c0a35eb5e5ed3fb6641f4

Contents?: true

Size: 371 Bytes

Versions: 36

Compression:

Stored size: 371 Bytes

Contents

require 'lite_spec_helper'

describe Mongo::Monitoring::Event::Cmap::PoolCleared do

  describe '#summary' do

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

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

    it 'renders correctly' do
      expect(event.summary).to eq('#<PoolCleared address=127.0.0.1:27017>')
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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