agoragames/chai — pull request #21 by awestendorf (2014-10-13 20:58:57+00:00)
Title: Spy

Implements spies, a variation of an expectation that asserts a call has happened. Passes the arguments through to the underlying method, returns/raises whatever the original method produces. Works for most types except for properties and unbound methods.