I had a quick search on the archive, but actually I did not find
anything useful to me.
My problem is that I need to do some functional tests on controllers
that are restricted to only some kind of users (I’m using user_engine).
While “manually” everything works, I’d like to test it authomatically. I
think I can do it with integration tests on rails 1.1, however for now I
must stick to 1.0.
Is there a “standard” solution to solve my problem? I tried to edit the
session object, but it looks read only. I have the login as user/login
and have to test actions from other controllers. I thought I could add a
login method to the tested controllers in the file where the tests are
defined, but it would be sub-optimal in my opinion.
It is the only way?