Skip to content

Commit 79d50fd

Browse files
committed
Fix collection test - write_concern on collection is applied when #drop is called in after block
1 parent b937e52 commit 79d50fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/mongo/collection_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@
417417
context 'when the collection has a write concern' do
418418

419419
after do
420-
collection.drop
420+
database[:specs].drop
421421
end
422422

423423
let(:options) do

0 commit comments

Comments
 (0)