diff --git a/spec/meilisearch/client/batches_spec.rb b/spec/meilisearch/client/batches_spec.rb index 49a647e3..0a14b29c 100644 --- a/spec/meilisearch/client/batches_spec.rb +++ b/spec/meilisearch/client/batches_spec.rb @@ -14,10 +14,19 @@ def new_task expect(client.batches).to match( 'results' => array_including( a_hash_including( + 'uid' => anything, 'details' => a_hash_including('receivedDocuments' => 1), + 'progress' => anything, 'stats' => a_hash_including( - 'types' => { 'documentAdditionOrUpdate' => 1 } - ) + 'totalNbTasks' => 1, + 'types' => { 'documentAdditionOrUpdate' => 1 }, + 'progressTrace' => anything, + 'writeChannelCongestion' => anything, + 'internalDatabaseSizes' => anything + ), + 'duration' => anything, + 'startedAt' => anything, + 'finishedAt' => anything ) ), 'total' => anything,