Fix caching spec for Rails 3