Copy/paste from rspec-expectations 2.x.  That was the simplest given this was already written.