Handoff provides a fluent interface for testing simple delegation. The Ruby stdlib module Forwardable makes implementing delegation simple and readable. Handoff is intended to make the code to test it just as simple and readable.

Handoff depends on Mocha and Stubba (mocha.rubyforge.org).

Here’s example_test.rb to give you an idea of what you can do:

:include: test/example_test.rb