On 01/04/2008, <b class="gmail_sendername">Jed Hurt</b> &lt;<a href="mailto:jed.hurt@gmail.com">jed.hurt@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there an easy way to stub an instance method for every new instance of a given class? I suppose I could just redefine the method, but I&#39;m wondering if the RSpec mocking framework has this built in.
</blockquote><div><br>Hi Jed<br><br>I hate it when other people ask this, but I can&#39;t help :)&nbsp; How come you need to do this?&nbsp; I&#39;ve always wondered what the use case for this &quot;mocking&quot; strategy is<br><br>
Ashley<br></div></div>