[mocha-developer] Expecting calls with two different parameters
jamesmead44 at gmail.com
Mon Oct 9 03:51:14 EDT 2006
On 08/10/06, Bryan Helmkamp <bhelmkamp at gmail.com> wrote:
> Thanks, Kevin and James. The key is instead of writing the mock like
> You have to write it like this:
> The first example won't work. If you don't want to specify the
> paramaters passed in one of the method calls, you can do:
> And that works too.
I'm glad you've worked it out - I'm still not clear what the issue was. It
would be clearer if you showed the actual method calls as well as the
I'm keen to observe the principle of least surprise, so please let me know
if an aspect of the Mocha API didn't work how you expected.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mocha-developer