cjohansen/Sinon.JS — pull request #114 by mantoni (2012-04-14 14:02:50+00:00)
Title: Matcher improvements

Following some ideas from a previous pull request, these improvements have been made:

* Custom or build-in objects work properly with `sinon.match.like` and `simon.match.has` now.
* Regular expressions are integrated into like. Consequently `sinon.match.re` was removed. I disliked the function name anyway.
* `sinon.match.like("foo")` does substring matching. Although it is still case sensitive. I ... just ... couldn't do it.
* or: `sinon.match.string.or(sinon.match.number)`
* and: `sinon.match.instanceOf(PullRequest).and(sinon.match.has("newFeatures"))`

If you like these changes I can also provide more documentation for sinon-web.