Sha256: 614da90d3ce3b62dfe8377d158a7ee62bc3343c36ae3754a4556f392456ad0a3

Contents?: true

Size: 440 Bytes

Versions: 13

Compression:

Stored size: 440 Bytes

Contents

require 'lite_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

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

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mongo-2.10.5 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.10.4 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.10.3 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.9.2 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.10.2 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.10.1 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.10.0 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.9.1 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.10.0.rc0 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.9.1.rc0 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.9.0 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.9.0.rc1 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb
mongo-2.9.0.rc0 spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb