pivotal/jasmine — pull request #260 by rgould (2012-07-24 23:01:20+00:00)
Title: Guarantee that afterEach and after blocks are always run

This expands (and includes) pull request #18. I consider this to be a draft version, and I'm issuing it with the intention of starting a discussion about this.

Pull request #18 lays out the problem nicely and adds some specs to verify its existence. I've merged these specs in, verified that they still fail, and then modified the Queue to fix the specs. I've done so by having blocks that can be marked as 'ensured'. If a preceding block aborts, the ensured blocks are still run.

I regenerated jasmine.js in a separate commit to ease pull request readability. If this is not desirable, I can change it.