Banker provides a complete set of assertions and Shoulda macros for testing page, action and fragment caching in your Rails 2.x application. It has not yet been tested on Rails 3.

Banker is hosted on GitHub.