heroku/databasedotcom — pull request #18 by durran (2011-10-18 09:55:47+00:00)
Title: Added basic equality checking of sobjects

Our use case here is that we want to check if 2 objects are equal, but we cannot always guarantee that they are the same instance. I've added really basic equality checking to address this, simply by looking at the class and the Id attribute of the object.

I didn't use any RSpec 2 specific features, since the gem is not locked to any specific Rspec version, but if you'd like me to update it to utilize RSpec 2 (mainly the use of let blocks instead of instance vars and eq() over == then I can update this as well.)

Thanks.