Take a look at this: http://pivotal.github.com/jasmine/#section-Spies
Coming from JasmineJS background, the ability to spy on any object proven to be very useful. I would like to see this functionality in YUI Test as well.
P.S. I would love to swap out YUITest for JasmineJS in my Mojito app if I knew how. :)
@trungpham not to pimp my self, but i've been working on https://github.com/hojberg/primrose to bring some Jasmine love to YUI. Would love help on it :) Primrose does have spies and will have YUI specific Event and ATTR spies as well.
I successfully test with Jasmine atm (not using primrose yet) It's not crazy hard.
Agree. Testing yui app with jasmine is not hard. Using jasminejs with Mojito is tough.