Haven't used this myself, but they were talking about this on the mailing
list a couple weeks ago:

http://mootools.net/forge/p/moock



On Thu, Dec 16, 2010 at 11:11 AM, Greg Moeck <[email protected]> wrote:

> I'm trying to mock/spy out the creating of a new instance of a class
> to test that the given class is receiving certain inputs for it's
> initialize function, but I'm not sure how to do this with the mootools
> implementation. In Ruby, it would be something like this:
>
> MyClass.should_receive(:new).with(some_argument)
>
> Any idea pointers, or where I should look in the core source?
>
> Thanks,
>
> Greg

Reply via email to