Hey dude, if you want to repost on JSpec's group I can help you out :) at least that way its historically there for others who need help (lots of people need help with the DOM stuff)
On Oct 17, 2:15 pm, finneycanhelp <lovefin...@gmail.com> wrote: > To add to this: > I know I can use the callback argument of the fadeOut method. > However, I would like to avoid adding that callback argument to the > method I am testing which calls fadeOut. It seems weird to add a > parameter just so I can test the method. > > http://visionmedia.github.com/jspec/and "Spies" might be key. It > seems that would require a jquery object be passed into the method I > am testing as opposed to the name of the thing I am binding to. In > fact, that may be more flexible and better anyway. > > Is there a best approach thatJSpec/jQuery users use when testing > something which happens over time like fadeOut() as opposed to hide()? > > Thanks. > > On Oct 17, 2:06 pm, finneycanhelp <lovefin...@gmail.com> wrote: > > > > > In doing BDD / TDD testing usingJSpec, how can one sense/capture that > > jQuery's fadeOut has been called? > > > Thanks. > > Mike Finney