spec/mongo/operation/delete_spec.rb in mongo-2.8.0 vs spec/mongo/operation/delete_spec.rb in mongo-2.9.0.rc0

- old
+ new

@@ -21,11 +21,11 @@ let(:spec) do { :deletes => [ document ], :db_name => SpecConfig.instance.test_db, :coll_name => TEST_COLL, - :write_concern => Mongo::WriteConcern.get(SpecConfig.instance.write_concern), + :write_concern => Mongo::WriteConcern.get(w: :majority), :ordered => true } end let(:op) { described_class.new(spec) } @@ -57,11 +57,11 @@ let(:other_spec) do { :deletes => [ other_doc ], :db_name => SpecConfig.instance.test_db, :coll_name => TEST_COLL, - :write_concern => Mongo::WriteConcern.get(SpecConfig.instance.write_concern), + :write_concern => Mongo::WriteConcern.get(w: :majority), :ordered => true } end let(:other) { described_class.new(other_spec) } @@ -90,11 +90,11 @@ let(:delete) do described_class.new({ deletes: [ document ], db_name: SpecConfig.instance.test_db, coll_name: TEST_COLL, - write_concern: Mongo::WriteConcern.get(SpecConfig.instance.write_concern) + write_concern: Mongo::WriteConcern.get(w: :majority) }) end context 'when the delete succeeds' do @@ -134,10 +134,10 @@ let(:delete) do described_class.new({ deletes: [ document ], db_name: SpecConfig.instance.test_db, coll_name: TEST_COLL, - write_concern: Mongo::WriteConcern.get(SpecConfig.instance.write_concern) + write_concern: Mongo::WriteConcern.get(w: :majority) }) end context 'when the deletes succeed' do