This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit fc84e85d5909072b738b27e799f223a752fd9b40
tree ec5ea93e887f579287813745e0abdc8b0eadacac
parent bedc7bf383ff6187e9a9ac21c0d0aca688317ba2 parent b286ee0f4a4581c1944260f20ba1bfd9b913397f
tree ec5ea93e887f579287813745e0abdc8b0eadacac
parent bedc7bf383ff6187e9a9ac21c0d0aca688317ba2 parent b286ee0f4a4581c1944260f20ba1bfd9b913397f
mocha /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
COPYING | Fri Jun 29 10:56:36 -0700 2007 | |
| |
MIT-LICENSE | Sun Sep 03 16:10:14 -0700 2006 | |
| |
README | ||
| |
RELEASE | ||
| |
Rakefile | ||
| |
TODO | ||
| |
examples/ | Thu Nov 29 02:53:38 -0800 2007 | |
| |
init.rb | Tue Feb 20 02:31:51 -0800 2007 | |
| |
lib/ | ||
| |
templates/ | Thu Sep 06 08:39:50 -0700 2007 | |
| |
test/ | ||
| |
vendor/ | Fri Jun 08 13:22:07 -0700 2007 |
README
= 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/], MiniTest[http://rubyforge.org/projects/bfts] 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 Installation Install 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 * Quick Start - {Usage Examples}[link:examples/misc.html] * Traditional mocking - {Star Trek Example}[link:examples/mocha.html] * Setting expectations on real classes - {Order Example}[link:examples/stubba.html] * More examples on {Floehopper's Blog}[http://blog.floehopper.org] * {Mailing List Archives}[http://groups.google.com/group/mocha-developer] == 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].








