This might be a tighter test:
```ruby
expect(assigns(:events)).to =~ [invited_event, user_event]
```

`=~` operator will make sure the array is equal, but won't test the order of the elements.