https://github.com/pivotal/jasmine/wiki/Spies