hadley/testthat — pull request #160 by krlmlr (2014-08-27 09:34:38+00:00)
Title: with_mock() function

As discussed in #159. Interface as suggested by @hadley, supports nesting, mocking more than one function, not mocking at all, and returning a value.

Early draft, with tests and a documentation stub. Comments are welcome.