Sha256: 57e39dadb015f2fa7580c641dfbadbf863740a10cde0ab3d40e0b03c64a66d53

Contents?: true

Size: 313 Bytes

Versions: 2

Compression:

Stored size: 313 Bytes

Contents

module CommonShortcuts
  # Declares a topology double, which is configured to accept summary
  # calls as those are used in SDAM event creation
  def declare_topology_double
    let(:topology) do
      double('topology').tap do |topology|
        allow(topology).to receive(:summary)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongo-2.7.0 spec/support/common_shortcuts.rb
mongo-2.7.0.rc0 spec/support/common_shortcuts.rb