mhevery/jasmine-node — pull request #103 by asalant (2011-12-12 07:02:20+00:00)
Title: Node-style async support for jasmine-node

Hi!

I felt that the async support provided by jasmine-node didn't play well with typical node apis so I implemented a version that I explain at http://bytes.goodeggsinc.com/post/13332056735/better-asynchronous-jasmine-node-specs. I've found this style reduces lines of spec code and avoids confusion about where and when to call asyncSpecWait and asyncSpecDone. It feels much more node-friendly so I thought it would be a good addition to jasmine-node.

That example on the blog is in CoffeeScript but I converted it to JavaScript and wrote specs for the features it provides and committed them to my fork of jasmine-node.

The changes are entirely additive so they won't break existing specs.

You might find the technique I used for testing my code to be useful in some of the other jasmine-node specs where you have to get meta about what the spec suite is doing.

I hope the formatting and naming style work for you. I tried to deduce a style from the existing code but it isn't very consistent. I went with the core jasmine style for the javascript and matched your file naming style.

Let me know what you think,

Alon