How do you call a before_filter directly to test it's implementation? Let's say I want to write a spec for ApplicationController that contains a few before filters. What is the standard way to test them? Note, I don't want to test that they've been called - I actually just want to test their implementation once in a single spec.
I like having "render_views" at the top of my controller specs, but when I use stubs, I get all sorts of strange errors as it tries to get the id or other attributes on the stub object. How do you deal with this so that you can make sure your views are correct while using stubs?
I use RSpec.