Created
October 18, 2015 17:11
-
-
Save dougluce/92dade5ddece53b259e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suspendSession = (done, cb) -> | |
... temporarily suspend the session ... | |
cb! | |
... restore the session ... | |
done! | |
specify 'not logged in, redirect to login' (done) -> | |
<- suspendSession done | |
err, res, body <- request.get "http://localhost/arm_the_missiles" | |
expect res.statusCode .to.equal 302 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment