Forum: Ruby on Rails How to test a controller that needs to be logged?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Juan K. (Guest)
on 2009-04-28 15:03

I know that I should use IntegrationTests to test flows of data. For
example, when an action requires various controllers. My question is, if
I can't post to another controller from for example
organizacions_controller_test.rb, how I can test its actions if those
actions require to be logged?

I can't post 'users/login', :user => {...}
I can't post {:controller => 'users', :action=>'login'}, :user =>{...}


This topic is locked and can not be replied to.