Rewrote login unit tests into specs