File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1818 tasks = index . tasks
1919
2020 expect ( tasks [ 'results' ] ) . to be_a ( Array )
21+ expect ( tasks [ 'total' ] ) . to be > 0
2122
2223 last_task = tasks [ 'results' ] . first
2324
3637 tasks = client . tasks
3738
3839 expect ( tasks [ 'results' ] ) . to be_a ( Array )
40+ expect ( tasks [ 'total' ] ) . to be > 0
3941
4042 last_task = tasks [ 'results' ] . first
4143
4850 expect ( tasks [ 'results' ] . count ) . to be <= 2
4951 expect ( tasks [ 'from' ] ) . to be_a ( Integer )
5052 expect ( tasks [ 'next' ] ) . to be_a ( Integer )
53+ expect ( tasks [ 'total' ] ) . to be > 0
5154 end
5255
5356 it 'filters tasks with index_uids/types/statuses' do
5457 tasks = client . tasks ( index_uids : [ 'a-cool-index-name' ] )
5558
5659 expect ( tasks [ 'results' ] . count ) . to eq ( 0 )
60+ expect ( tasks [ 'total' ] ) . to eq ( 0 )
5761
5862 tasks = client . tasks ( index_uids : [ 'books' ] , types : [ 'documentAdditionOrUpdate' ] , statuses : [ 'succeeded' ] )
5963
6064 expect ( tasks [ 'results' ] . count ) . to be > 1
65+ expect ( tasks [ 'total' ] ) . to be > 1
6166 end
6267
6368 it 'ensures supports to all available filters' do
You can’t perform that action at this time.
0 commit comments