[rspec-users] How to spec a around_filter

Alex afolgueras at gmail.com
Wed Mar 25 16:15:20 EDT 2009

Hi all, any of you guys had success specking out a around_filter? I
tried a few things like controller.should_receive
(:around_filter_method), controller.stub!(:around_filter_method) but
without success. In fact, the method is always executed even though I
stubed it. What I find strange is that I also have a before_filter and
I do not have any problems specking it. Why should it be different for
an around_filter?


More information about the rspec-users mailing list