cjohansen/Sinon.JS — Issue #84: assert.calledOnceWithMatch
Author: magnars
Created: 2012-02-10 23:46:17+00:00
State: open

`assert.match` is the best thing way before sliced bread, and I want it with everything. But most of all I want it with `assert.calledOnceWith`.

The usecase that prompted this issue was todays snafu:

fs.createReadStream(__dirname + '/blank-config-file.js');

stubbing out this so-and-so makes for some unwieldy `getCall` and `args` incantations. Sinon is for beauty, and let me tell you - this code I just wrote isn't gonna win any pageants. :)