I'm attempting to implement fragment caching in my application. It displays a lot of data that rarely changes so I figured that fragment caching would be the best solution for some performance problems I've been having.
I'm using Rail's built-in fragment caching and cache sweepers, but I can't seem to find any good way of testing the creation/expiration of the fragments (using rspec and friends).
Any help would be much appreciated.
Clarification: All I really want to test is that the appropriate fragments are expired, not that anything in particular is going in or coming out of the cache.