Displaying 2 results from an estimated 2 matches for "verify_stubs".
2006 Dec 15
0
Fwd: Re: [HOWTO] Edgemocha
...ou would want to use Mocha outside a
testing framework. Your example illustrates a couple of the problems
of using Mocha outside a testing framework - when do expectations get
verified and when do stubbed classes get put back to their original
state. You need to decide when to trigger calls to e.g. verify_stubs()
and teardown_stubs().
Probably better to post stuff like this to the Mocha developer list
(see footer) rather than ruby-talk.
--
James.
http://blog.floehopper.org
http://rubyforge.org/mailman/listinfo/mocha-developer
2007 Mar 12
10
using mocha with rspec
Hi folks.
I''ve just started using rspec and I have to say it''s very nice. The
thing is, I prefer mocha''s mocking dialect. So I thought a simple
require ''mocha'' would set me up.
Unfortunately, rspec does all its goodness using do/end blocks in
anonymous classes, so it wasn''t quite that obvious.
Anyway, here is the incantation I ended up