Sha256: a6d0f0d79a26463850c7ca5c56b346c19d9a31ce9699b4bf1865d856f60abe0d
Contents?: true
Size: 526 Bytes
Versions: 33
Compression:
Stored size: 526 Bytes
Contents
require 'spec_helper' describe Mongo::Monitoring::Event::CommandSucceeded do describe '#initialize' do let(:address) do Mongo::Address.new('127.0.0.1:27017') end let(:reply) do BSON::Document.new(test: 'value') end context 'when the reply should be redacted' do let(:event) do described_class.new('copydb', 'admin', address, 1, 2, reply, 0.5) end it 'sets the reply to an empty document' do expect(event.reply).to be_empty end end end end
Version data entries
33 entries across 30 versions & 3 rubygems