public
Description: Mocha is a mocking and stubbing library for Ruby
Homepage: http://mocha.rubyforge.org/
Clone URL: git://github.com/floehopper/mocha.git
mocha / README
1e4ce2c5 » floehopper 2006-07-16 Added first draft of README... 1 = Mocha
2
85e1a74e » floehopper 2008-06-24 Updated README. 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 Added first draft of README... 4
b599e2b4 » floehopper 2008-11-22 Updated README to indicate ... 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 Added first draft of README... 6
85e1a74e » floehopper 2008-06-24 Updated README. 7 Mocha provides a unified, simple and readable syntax for both traditional mocking and partial mocking.
1e4ce2c5 » floehopper 2006-07-16 Added first draft of README... 8
421d9477 » floehopper 2008-12-30 Updated link to Chris Roos.... 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 Added first draft of README... 10
df0e13bd » floehopper 2006-07-16 Tweaks to README and TODO. ... 11 == Download and Installation
1e4ce2c5 » floehopper 2006-07-16 Added first draft of README... 12
2d337e03 » floehopper 2006-09-03 Major overhaul of rdocs - o... 13 Install the gem with the following command...
1e4ce2c5 » floehopper 2006-07-16 Added first draft of README... 14
2d337e03 » floehopper 2006-09-03 Major overhaul of rdocs - o... 15 $ gem install mocha
4fc1bc3e » floehopper 2006-08-24 Released 0.3.0 16
2d337e03 » floehopper 2006-09-03 Major overhaul of rdocs - o... 17 Or install the Rails[http://www.rubyonrails.org] plugin...
4fc1bc3e » floehopper 2006-08-24 Released 0.3.0 18
421d9477 » floehopper 2008-12-30 Updated link to Chris Roos.... 19 $ script/plugin install git://github.com/floehopper/mocha.git
1e4ce2c5 » floehopper 2006-07-16 Added first draft of README... 20
421d9477 » floehopper 2008-12-30 Updated link to Chris Roos.... 21 Or download Mocha...
22
23 http://rubyforge.org/frs/?group_id=1917
1e4ce2c5 » floehopper 2006-07-16 Added first draft of README... 24
df0e13bd » floehopper 2006-07-16 Tweaks to README and TODO. ... 25 == Examples
26
2d337e03 » floehopper 2006-09-03 Major overhaul of rdocs - o... 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 Updated mailing list addres... 31 * {Mailing List Archives}[http://groups.google.com/group/mocha-developer]
1e4ce2c5 » floehopper 2006-07-16 Added first draft of README... 32
2d337e03 » floehopper 2006-09-03 Major overhaul of rdocs - o... 33 == License
df0e13bd » floehopper 2006-07-16 Tweaks to README and TODO. ... 34
2d337e03 » floehopper 2006-09-03 Major overhaul of rdocs - o... 35 Copyright Revieworld Ltd. 2006
d39ad5f5 » floehopper 2007-06-29 Replace tabs with spaces. 36
2d337e03 » floehopper 2006-09-03 Major overhaul of rdocs - o... 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].