Topic: Testing framework & how to test application controller before_filter?
I've created an application which uses the restful_authentication and globalize plugins. Now I'm in a position where I'd like to test the before_filters that have been added to my application controller - they do things like cookie-based login, setting the header content type and setting the locale.
I've been trying to test the application controller, but I don't think the before filters run unless a request has been issued. Trying to use an integration test for checking that the locale is set properly gives me other problems - it seems that integration tests behave differently to functional tests when it comes to user login.
I think the main problem is that I do not have a thorough grasp of what environment the different types of tests operate in - e.g. what objects are available.
1. Can anyone point me in the direction of some good resources about how the Rails test framework operates, with regard to the different environments that the different type of tests operate in?
2. Is there a way to test the application controller without having to do so "by proxy" via testing a specific controller?