Work around spec issue with equal() use

This passed locally, but doesn't work on Travis on ruby 1.9+. As
the identity check isn't important, just switch to regular ==.