CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 07 Aug 2025 05:47:20 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090301191149
location: https://web.archive.org/web/20090301191149/https://github.com/floehopper/mocha/tree
server-timing: captures_list;dur=0.677370, exclusion.robots;dur=0.029197, exclusion.robots.policy;dur=0.013489, esindex;dur=0.011098, cdx.remote;dur=46.682980, LoadShardBlock;dur=285.983194, PetaboxLoader3.datanode;dur=69.811240, PetaboxLoader3.resolve;dur=69.327082
x-app-server: wwwb-app218
x-ts: 302
x-tr: 375
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app218; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Thu, 07 Aug 2025 05:47:20 GMT
content-type: text/html; charset=utf-8
content-length: 112
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Sun, 01 Mar 2009 19:11:48 GMT
x-archive-orig-connection: close
x-archive-orig-set-cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20090301191149/https://github.com/floehopper/mocha/tree/master
x-archive-orig-x-runtime: 75ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 112
cache-control: max-age=1800
memento-datetime: Sun, 01 Mar 2009 19:11:49 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 31 Dec 2008 04:32:08 GMT", ; rel="prev memento"; datetime="Thu, 26 Feb 2009 09:54:20 GMT", ; rel="memento"; datetime="Sun, 01 Mar 2009 19:11:49 GMT", ; rel="next memento"; datetime="Fri, 01 May 2009 09:58:16 GMT", ; rel="last memento"; datetime="Fri, 14 Aug 2009 02:13:47 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_8_20090301131135_crawl102-c/52_8_20090301190114_crawl101.arc.gz
server-timing: captures_list;dur=0.652451, exclusion.robots;dur=0.023497, exclusion.robots.policy;dur=0.010842, esindex;dur=0.010854, cdx.remote;dur=28.248888, LoadShardBlock;dur=198.986800, PetaboxLoader3.datanode;dur=169.903977, PetaboxLoader3.resolve;dur=210.297609, load_resource;dur=237.111587
x-app-server: wwwb-app218
x-ts: 301
x-tr: 492
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 07 Aug 2025 05:47:21 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Sun, 01 Mar 2009 19:11:49 GMT
x-archive-orig-connection: close
x-archive-orig-set-cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 217ms
x-archive-orig-etag: "a4a1b0ab220a75fc158f71721c9ccc57"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 26838
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 01 Mar 2009 19:11:49 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 31 Dec 2008 04:32:08 GMT", ; rel="prev memento"; datetime="Fri, 27 Feb 2009 04:54:23 GMT", ; rel="memento"; datetime="Sun, 01 Mar 2009 19:11:49 GMT", ; rel="next memento"; datetime="Wed, 01 Apr 2009 00:10:14 GMT", ; rel="last memento"; datetime="Wed, 29 Jan 2014 12:51:27 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_8_20090301131135_crawl102-c/52_8_20090301190114_crawl101.arc.gz
server-timing: captures_list;dur=0.539009, exclusion.robots;dur=0.020677, exclusion.robots.policy;dur=0.009313, esindex;dur=0.010200, cdx.remote;dur=9.373924, LoadShardBlock;dur=127.889590, PetaboxLoader3.datanode;dur=75.723672, PetaboxLoader3.resolve;dur=170.029484, load_resource;dur=133.657241
x-app-server: wwwb-app218
x-ts: 200
x-tr: 348
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
floehopper's mocha at master - GitHub
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 (

Run the following if you haven't already:
gem sources -a https://gems.github.com
Install the gem(s):
sudo gem install floehopper-mocha
Description: | Mocha is a mocking and stubbing library for Ruby |
Homepage: | https://mocha.rubyforge.org/ |
Clone URL: |
git://github.com/floehopper/mocha.git
Give this clone URL to anyone.
git clone git://github.com/floehopper/mocha.git
|
mocha /
= Mocha Mocha is a library for mocking and stubbing using a syntax like that of JMock[https://www.jmock.org]. It can be used with many testing frameworks e.g. Test::Unit[https://www.ruby-doc.org/core/classes/Test/Unit.html], RSpec[https://rspec.info/], test/spec[https://chneukirchen.org/repos/testspec/README], expectations[https://expectations.rubyforge.org/], Dust[https://dust.rubyforge.org/], MiniTest[https://rubyforge.org/projects/bfts] and even JtestR[https://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[https://www.reevoo.com] by me (James[https://blog.floehopper.org]) and my (then) colleagues Ben[https://www.techbelly.com/], Chris[https://chrisroos.co.uk] and Paul[https://po-ru.com]. == Download and Installation Install the gem with the following command... $ gem install mocha Or install the Rails[https://www.rubyonrails.org] plugin... $ script/plugin install git://github.com/floehopper/mocha.git Or download Mocha... https://rubyforge.org/frs/?group_id=1917 == 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}[https://blog.floehopper.org] * {Mailing List Archives}[https://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}[https://www.ruby-lang.org/en/LICENSE.txt] or under the {MIT license}[https://mocha.rubyforge.org/files/MIT-LICENSE.html].
This feature is coming soon. Sit tight!