Displaying 1 result from an estimated 1 matches for "logincontrollertest".
2006 Feb 16
4
Problems to test controllers which require login
...troller with a login rewuirement will
fail (because there is no logged in user in the session). I realized the
conceptual problem behind this, but I''m not able to solve it.
What I have done so far:
* Login in the test class as described in the Agile Rails Book. This
works perfect for the LoginControllerTest (even for sites, that need
logged in users).
* Extracted the login functionallity in the test_helper.rb file (again
as described in the book). But unfortunatly this works only for the
LoginControllerTest. In every other Controller test I got an error while
performing this method. (I tried this with...