Displaying 1 result from an estimated 1 matches for "units_controller_test".
2011 Mar 30
3
Test errors in fuctional test after adding before_filter :login_required to controller
...user.
Here''s an example of my Unit Controller with the added before_filter:
IN THE ATTACHED FILE
When executing the tests with rake test, I get different error messages.
To show you my errors, I only executed the unit controller test with the
following line:
ruby -Itest test/functional/units_controller_test.rb
I get the folowing errors:
IN THE ATTACHED FILE
If I delete the "before_filter :login_required" line from the unit
controller, the test will be executed without any errors.
I have a controller_authentication.rb file within my /lib directory. The
content of the file:
IN THE ATTACHE...