Sha256: 31245e80a0471a98c53ea9baaa1db2fc74b451e64b1289b2558ed0156b4f1bc1
Contents?: true
Size: 562 Bytes
Versions: 18
Compression:
Stored size: 562 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require 'lite_spec_helper' describe Mongo::Monitoring::Event::Cmap::ConnectionClosed do describe '#summary' do let(:address) do Mongo::Address.new('127.0.0.1:27017') end let(:reason) do described_class::STALE end let(:id) do 1 end let(:event) do described_class.new(address, id, reason) end it 'renders correctly' do expect(event.summary).to eq('#<ConnectionClosed address=127.0.0.1:27017 connection_id=1 reason=stale>') end end end
Version data entries
18 entries across 18 versions & 1 rubygems