Sha256: 4c9ecae6127fc5aba464468751b3c61dc1fa0e53af702de11a89983cb232ae63

Contents?: true

Size: 656 Bytes

Versions: 18

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

require 'spec_helper'

describe Mongo::Monitoring::Event::Cmap::ConnectionCheckedIn do

  describe '#summary' do

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

    let(:id) do
      1
    end

    declare_topology_double

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

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

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