chickadee » missbehave » with-stubs!

(with-stubs! ((name stub) ... ) code ...)syntax

This form replaces the behavior of name with the stub code. Note that there is a (returns)-form which is a short-hand to create a procedure that returns the given value.