Sha256: c8290266c1a43e0c88408720fb86ad144915e491fbbfe070c3c2be62a2e7a56f

Contents?: true

Size: 490 Bytes

Versions: 9

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true
# rubocop:todo all

require 'spec_helper'

describe Mongo::WriteConcern::Unacknowledged do

  let(:concern) do
    described_class.new(:w => 0)
  end

  describe '#get_last_error' do

    it 'returns nil' do
      expect(concern.get_last_error).to be_nil
    end
  end

  describe '#acknowledged?' do

    let(:concern) do
      described_class.new(:w => 0)
    end

    it 'returns false' do
      expect(concern.acknowledged?).to be(false)
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.20.1 spec/mongo/write_concern/unacknowledged_spec.rb
mogno-2.20.0 spec/mongo/write_concern/unacknowledged_spec.rb
mogno-1.0.0 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.20.0 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.19.3 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.19.2 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.19.1 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.19.0 spec/mongo/write_concern/unacknowledged_spec.rb