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 8efba1e commit 7fd6a33Copy full SHA for 7fd6a33
spec/mongo/collection_spec.rb
@@ -294,6 +294,10 @@
294
it 'inserts the documents into the collection', unless: write_command_enabled? do
295
expect(result.written_count).to eq(0)
296
end
297
+
298
+ it 'contains the ids in the result' do
299
+ expect(result.inserted_ids.size).to eq(2)
300
+ end
301
302
303
describe '#insert_one' do
@@ -313,6 +317,10 @@
313
317
it 'inserts the document into the collection', unless: write_command_enabled? do
314
318
315
319
320
321
+ it 'contains the id in the result' do
322
+ expect(result.inserted_id).to_not be_nil
323
316
324
325
326
describe '#inspect' do
0 commit comments