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:
Please check it out.
Best,
Wolf
Congratulations!!
Me and new stuff are like a door and its frame (they are always
together). I
getting it right for trial!!
Edmond
Software Developer | Baobab Health Trust (http://www.baobabhealth.org/)
|
Malawi
Cell: +265 999 465 137 | +265 881 234 717
“Many people doubt open source software and probably don’t realize that
there is an alternative… which is just as good…” – Kevin Scannell
Le 8 septembre 2010 09:06:44 UTC+2, Wolfram Arnold
[email protected] a
écrit :