Avoid `useless use of == in avoid context` warning.

…by calling a method on the result.
It's a hack but it'll help us to keep rspec-expectations warning free.