I've released a gem that lets you assert in rspec whether a given action
or fragment has been cached. It works with memcached only.
Example:
lambda {
get :index
}.should be_cached(controller, :action => 'index')
Available at:
http://rubygems.org/gems/caching_matcher
Github:
http://github.com/mightyverse/caching_matcher
Please check it out.
Best,
Wolf
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.