Sha256: 18ff8e9099d39f618284f0982bdbc650b3ed5ed71f08cd75d2d5360d717ec342

Contents?: true

Size: 420 Bytes

Versions: 18

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

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

18 entries across 18 versions & 1 rubygems

Version Path
mongo-2.16.4 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.17.4 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.18.3 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.18.2 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.17.3 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.18.1 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.18.0 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.17.2 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.16.3 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.18.0.beta1 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.16.2 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.17.1 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.16.1 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.17.0 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.16.0 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.15.1 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.16.0.alpha1 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb
mongo-2.15.0 spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb