Testing with Mock Objects in Rails

UPDATE: May 24th, 2007 This post is now woefully out of date; since it was written, severalexcellent mocking libraries have been released, and some testing frameworks include mocking functionality of their own. Watch the Four Labs blog for an updated version of this, coming soon!