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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0fc60326968a0eaccf30330fe6758375?d=identicon&s=25 Juan Kinunt (kinunt)
on 2009-04-28 13:03
Hi,

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 =>{...}

etc...

Thanks.
This topic is locked and can not be replied to.