On 01/04/2008, <b class="gmail_sendername">Jed Hurt</b> <<a href="mailto:jed.hurt@gmail.com">jed.hurt@gmail.com</a>> 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'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't help :) How come you need to do this? I've always wondered what the use case for this "mocking" strategy is<br><br>
Ashley<br></div></div>