[mocha-developer] Fwd: Re: Re: [HOWTO] Edgemocha

James Mead jamesmead44 at gmail.com
Fri Dec 15 12:38:04 EST 2006

---------- Forwarded message ----------
From: James Mead <jamesmead44 at gmail.com>
Date: 15-Dec-2006 17:37
Subject: Re: Re: [HOWTO] Edgemocha
To: John Pywtorak <jpywtora at calpoly.edu>

On 15/12/06, John Pywtorak <jpywtora at calpoly.edu> wrote:
> Compare
> ~$ sudo gem install mocha
> Attempting local installation of 'mocha'
> Successfully installed mocha-0.3.2
> ~$ irb
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'test/unit'
> => true
> irb(main):003:0> require 'mocha'
> => false
> irb(main):004:0> Object.methods.include? "expects"
> => false
> irb(main):005:0>

One of the changes in HEAD has been to do away with the split between
Mocha and Stubba and amalgamate it all under Mocha. However in the gem
0.3.2 you still need to require 'stubba' as per the example in the
Mocha docs - http://mocha.rubyforge.org/examples/stubba.html

Hope that makes sense.


More information about the mocha-developer mailing list