Sha256: a068be335af0fc3f9bd796e0ad55482bd9a0e8dfdabe6605bb48a9d6a62942b8
Contents?: true
Size: 575 Bytes
Versions: 18
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require_relative './performs_legacy_retries' module SupportsLegacyRetries shared_examples 'it supports legacy retries' do context 'when server does not support modern retries' do before do allow_any_instance_of(Mongo::Server).to receive(:retry_writes?).and_return(false) end it_behaves_like 'it performs legacy retries' end context 'when client is set to use legacy retries' do let(:retry_writes) { false } it_behaves_like 'it performs legacy retries' end end end
Version data entries
18 entries across 18 versions & 1 rubygems