Sha256: a62259bd665a32e84eab00600d2104b44fa32383ea65c8a6829ac15d7461524c

Contents?: true

Size: 489 Bytes

Versions: 18

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

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

18 entries across 18 versions & 1 rubygems

Version Path
mongo-2.16.4 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.17.4 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.18.3 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.18.2 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.17.3 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.18.1 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.18.0 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.17.2 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.16.3 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.18.0.beta1 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.16.2 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.17.1 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.16.1 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.17.0 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.16.0 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.15.1 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.16.0.alpha1 spec/mongo/write_concern/unacknowledged_spec.rb
mongo-2.15.0 spec/mongo/write_concern/unacknowledged_spec.rb