This one is awkward, but the way I would write it is like:

```ruby
query.after_initialize
query.instance_variable_get(:@is_for_all).should be_true
```