fluxtream/fluxtream-app — pull request #17 by candu (2012-11-30 17:22:13+00:00)
Title: Simplifying routing functions, adding Jasmine for unit testing

`Calendar.initialize()` and `App.renderMainApp()` now lean on Backbone for
getting the current URL path, which simplifies both functions a good
deal. To clean these up further, switched to heavy use of `Array.shift()`
to retrieve path elements.

Also made a cosmetic change to `FlxState`: tab states are now
get/set using both the application name and tab name as keys to
`tabStateStorage`. This prevents apps from accidentally clobbering other
apps' tabs.

Also added Jasmine for unit testing. I'm currently trying out [this article](http://blog.founddrama.net/2012/09/headless-javascript-testing-with-jasmine-and-phantomjs/)
to integrate Jasmine with phantomjs. Once that works, we'll be able to
run both unit and UI tests via phantomjs, which we can then script into
the build process :)

As a first, er, test case for the testing framework, I added a test for
my changes to `FlxState`.