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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Edmond Kachale
2010-Sep-08 07:12 UTC
Re: New Gem: Rspec custom matchers for action caching
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 <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> a écrit :> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.