You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... to enable declarative assertions about whether filters should fire for a given action. I use this a lot in conjunction with shared guard filters where I don't want to have to do the setup for every controller test so I assert that the filter will be used and then stub it out... My implementation is at http://github.com/fidothe/shoulda/tree/use_filter, in lib/shoulda/action_controller/matchers/use_filter_matcher, tests in test/matchers/controller/use_filter_matcher_test.rb.