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 (
mocha / README
| 1e4ce2c5 » | floehopper | 2006-07-16 | 1 | = Mocha | |
| 2 | |||||
| 85e1a74e » | floehopper | 2008-06-24 | 3 | Mocha is a library for mocking and stubbing using a syntax like that of JMock[http://www.jmock.org]. | |
| 1e4ce2c5 » | floehopper | 2006-07-16 | 4 | ||
| b599e2b4 » | floehopper | 2008-11-22 | 5 | 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/]. | |
| 1e4ce2c5 » | floehopper | 2006-07-16 | 6 | ||
| 85e1a74e » | floehopper | 2008-06-24 | 7 | Mocha provides a unified, simple and readable syntax for both traditional mocking and partial mocking. | |
| 1e4ce2c5 » | floehopper | 2006-07-16 | 8 | ||
| 421d9477 » | floehopper | 2008-12-30 | 9 | Mocha was harvested from projects at Reevoo[http://www.reevoo.com] by me (James[http://blog.floehopper.org]) and my (then) colleagues Ben[http://www.techbelly.com/], Chris[http://chrisroos.co.uk] and Paul[http://po-ru.com]. | |
| 1e4ce2c5 » | floehopper | 2006-07-16 | 10 | ||
| df0e13bd » | floehopper | 2006-07-16 | 11 | == Download and Installation | |
| 1e4ce2c5 » | floehopper | 2006-07-16 | 12 | ||
| 2d337e03 » | floehopper | 2006-09-03 | 13 | Install the gem with the following command... | |
| 1e4ce2c5 » | floehopper | 2006-07-16 | 14 | ||
| 2d337e03 » | floehopper | 2006-09-03 | 15 | $ gem install mocha | |
| 4fc1bc3e » | floehopper | 2006-08-24 | 16 | ||
| 2d337e03 » | floehopper | 2006-09-03 | 17 | Or install the Rails[http://www.rubyonrails.org] plugin... | |
| 4fc1bc3e » | floehopper | 2006-08-24 | 18 | ||
| 421d9477 » | floehopper | 2008-12-30 | 19 | $ script/plugin install git://github.com/floehopper/mocha.git | |
| 1e4ce2c5 » | floehopper | 2006-07-16 | 20 | ||
| 421d9477 » | floehopper | 2008-12-30 | 21 | Or download Mocha... | |
| 22 | |||||
| 23 | http://rubyforge.org/frs/?group_id=1917 | ||||
| 1e4ce2c5 » | floehopper | 2006-07-16 | 24 | ||
| df0e13bd » | floehopper | 2006-07-16 | 25 | == Examples | |
| 26 | |||||
| 2d337e03 » | floehopper | 2006-09-03 | 27 | * Quick Start - {Usage Examples}[link:examples/misc.html] | |
| 28 | * Traditional mocking - {Star Trek Example}[link:examples/mocha.html] | ||||
| 29 | * Setting expectations on real classes - {Order Example}[link:examples/stubba.html] | ||||
| 30 | * More examples on {Floehopper's Blog}[http://blog.floehopper.org] | ||||
| 990a1622 » | floehopper | 2008-11-22 | 31 | * {Mailing List Archives}[http://groups.google.com/group/mocha-developer] | |
| 1e4ce2c5 » | floehopper | 2006-07-16 | 32 | ||
| 2d337e03 » | floehopper | 2006-09-03 | 33 | == License | |
| df0e13bd » | floehopper | 2006-07-16 | 34 | ||
| 2d337e03 » | floehopper | 2006-09-03 | 35 | Copyright Revieworld Ltd. 2006 | |
| d39ad5f5 » | floehopper | 2007-06-29 | 36 | ||
| 2d337e03 » | floehopper | 2006-09-03 | 37 | 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]. | |







