[mocha-developer] Problem with RSpec and Mocha/Stubba

James Mead jamesmead44 at gmail.com
Wed Sep 13 09:37:52 EDT 2006


On 13/09/06, James Mead <jamesmead44 at gmail.com> wrote:

# add this line to your context's setup
> $stubba = Stubba:: Central.new
>
> Getting the auto-verify to work and sorting this out properly needs a bit
> more thought.
>

Of course, I forgot to mention that this hack is more evil than nasty,
because without the stubba teardown being triggered your stubbed method
won't get put back together again. So anything other than instance method
stubs will be left in place and will most likely trip you up in subsequent
tests.
-- 
James.
http://blog.floehopper.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mocha-developer/attachments/20060913/d30e932f/attachment.html 


More information about the mocha-developer mailing list