domenic/sinon-chai — pull request #12 by fizker (2012-05-26 13:25:29+00:00)
Title: Added support for checking against spy-calls

In pure sinon, it is possible to assert against spy-calls:

var spy = sinon.spy()
spy('abc')
var call = spy.getCall(0)
assert(true === call.calledWith('abc'))
assert(false === call.calledWith('def'))

sinon-chai should support this scenario, but `expect(call).to.have.been.calledWith('abc')` was rejected due to calls not being spies.

I have extended the spy-assert to check for spy-calls as well.