Plugins - Mocha
Add to favoritesIntroduction
The Mocha plugin allows mocking and stubbing within tests using a syntax like that of JMock and SchMock.
The big advantage it has over other mocking and stubbing libraries is its ability to mock or stub individual class or instance methods on concrete classes.
Provenance
Mocha has been created by amalgamating a number of techniques developed by James and my Reevoo colleagues Ben, Chris and Paul into a common syntax. It is currently in use on real-world Rails projects.
License
Copyright Revieworld Ltd. 2006
You may use, copy and redistribute this library under the same terms as Ruby itself (see http://www.ruby-lang.org/en/LICENSE.txt).

Mocha is absolutely awesome. It has greatly helped my unit tests. I find myself writing more test cases now that it takes a fraction of the time fixtures did.
Thanks a lot!