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