spec/mongo/operation/write/delete_spec.rb in mongo-2.0.0.rc vs spec/mongo/operation/write/delete_spec.rb in mongo-2.0.0

- old
+ new

@@ -97,10 +97,14 @@ end it 'deletes the documents from the database' do expect(result.written_count).to eq(1) end + + it 'reports the correct deleted count' do + expect(result.deleted_count).to eq(1) + end end context 'when the delete fails' do let(:document) do @@ -136,9 +140,13 @@ delete.execute(authorized_primary.context) end it 'deletes the documents from the database' do expect(result.written_count).to eq(2) + end + + it 'reports the correct deleted count' do + expect(result.deleted_count).to eq(2) end end context 'when a delete fails' do