mozilla/spartacus — pull request #19 by muffinresearch (2014-03-20 17:42:52+00:00)
Title: Hookup API for pin state and mock it for testing

This adds the API check for pin state and the mocks the same for the casper tests to validate the routing is working as expected.

I've also fixed some nits with how the login checks affect routing such that this should stop the need to force render the views.

Casper has some new helpers that inject sinon so that the API responses can be mocked and tweaked to create specific states.