Am I reading the expects line correctly? I think when user_enabled?
returns false, you should get the redirect to "/". I would have
thought that in order to fall through to :some_function that line
should return 'true'.
Contact.before_filter.expects(:user_enabled?).returns(false)
Or do I not understand your code? (I do admit to not doing a lot of
mocks/stubs because I don't fully understand them yet.)