You are here: Browse Railsplugins Mocha
Location: United Kingdom, London and Durham
= Mocha
Mocha is a library for mocking and stubbing using a syntax like that of JMock[http://www.jmock.org].
It can be used with many testing frameworks e.g. Test::Unit[http://www.ruby-doc.org/core/classes/Test/Unit.html], RSpec[http://rspec.info/], test/spec[http://chneukirchen.org/repos/testspec/README], expectations[http://expectations.rubyforge.org/], Dust[http://dust.rubyforge.org/] and even JtestR[http://jtestr.codehaus.org/].
Mocha provides a unified, simple and readable syntax for both traditional mocking and partial mocking.
Mocha was harvested from projects at Reevoo[http://www.reevoo.com] by me (James[http://blog.floehopper.org]) and my colleagues Ben[http://www.techbelly.com/], Chris[http://blog.seagul.co.uk] and Paul[http://po-ru.com].
Download and InstallationInstall the gem with the following command...
$ gem install mocha
Or install the Rails[http://www.rubyonrails.org] plugin...
$ script/plugin install svn://rubyforge.org/var/svn/mocha/trunk
Or download Mocha from here - http://rubyforge.org/projects/mocha
Examples== License
Copyright Revieworld Ltd. 2006
You may use, copy and redistribute this library under the same terms as {Ruby itself}[http://www.ruby-lang.org/en/LICENSE.txt] or under the {MIT license}[http://mocha.rubyforge.org/files/MIT-LICENSE.html].
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly
Homepage: http://mocha.rubyforge.org
Categories: Technology