Just because I think it could help in other cases, I suggest this variant:

```ruby
output = []
@docchapter['docchapter.docs'].each { |group| output << group['linktodoc'].slug }
output.join(' ').should == with-jquery with-bootstrap
```

But I'm not even certain the `join` is useful: `output.should == %w(with-jquery with-bootstrap)` would be fine