<span class="gmail_quote">On 13/09/06, <b class="gmail_sendername">James Mead</b> &lt;<a href="mailto:jamesmead44@gmail.com">jamesmead44@gmail.com</a>&gt; wrote:</span><br><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div># add this line to your context's setup<br>$stubba = Stubba::
Central.new<br><br>Getting the auto-verify to work and sorting this out properly needs a bit more thought.<br></div></blockquote></div><br>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.
<br clear="all">-- <br>James.<br><a href="http://blog.floehopper.org">http://blog.floehopper.org</a>