We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eac94e commit 7f47bc9Copy full SHA for 7f47bc9
spec/mongo/database_spec.rb
@@ -97,19 +97,19 @@
97
context 'when there are more collections than the initial batch size' do
98
99
before do
100
- 200.times do |i|
+ 2.times do |i|
101
database["#{i}_dalmatians"].create
102
end
103
104
105
after do
106
107
database["#{i}_dalmatians"].drop
108
109
110
111
it 'returns all collections' do
112
- expect(database.collection_names.select { |c| c =~ /dalmatians/}.size).to eq(200)
+ expect(database.collection_names(batch_size: 1).select { |c| c =~ /dalmatians/}.size).to eq(2)
113
114
115
0 commit comments