spec/mongoid/persistable/destroyable_spec.rb in mongoid-6.4.8 vs spec/mongoid/persistable/destroyable_spec.rb in mongoid-7.0.0.beta
- old
+ new
@@ -220,28 +220,9 @@
expect(removed).to eq(1)
end
end
end
- context 'when the write concern is unacknowledged' do
-
- before do
- Person.create(title: 'miss')
- end
-
- let!(:removed) do
- Person.with(write: { w: 0 }) { |klass| klass.destroy_all(title: "sir") }
- end
-
- it "removes the matching documents" do
- expect(Person.where(title: 'miss').count).to eq(1)
- end
-
- it "returns 0" do
- expect(removed).to eq(0)
- end
- end
-
context 'when removing a list of embedded documents' do
context 'when the embedded documents list is reversed in memory' do
let(:word) do