Another way of writing this test is
```ruby
doc_list.map(&:id)).to match_array [@collection.id, @gf1.id]
```
This means it should have only these two elements in any order.