Path: | README |
Last Update: | Mon Aug 18 03:33:35 -0600 2008 |
Mocha is a library for mocking and stubbing using a syntax like that of JMock.
It can be used with many testing frameworks e.g. Test::Unit, RSpec, test/spec, expectations, Dust and even JtestR.
Mocha provides a unified, simple and readable syntax for both traditional mocking and partial mocking.
Mocha was harvested from projects at Reevoo by me (James) and my colleagues Ben, Chris and Paul.
Install the gem with the following command…
$ gem install mocha
Or install the Rails plugin…
$ script/plugin install svn://rubyforge.org/var/svn/mocha/trunk
Or download Mocha from here - rubyforge.org/projects/mocha
Copyright Revieworld Ltd. 2006
You may use, copy and redistribute this library under the same terms as Ruby itself or under the MIT license.