search for: should_not_be_logged_in

Displaying 1 result from an estimated 1 matches for "should_not_be_logged_in".

2007 Jul 24
6
Mocking Access Control
...response.should redirect_to(:controller => "toolkit/overview", :action => "index") should_be_logged_in end it "should logout" do get :logout response.should redirect_to(:controller => "users", :action => "login") should_not_be_logged_in end protected def should_be_logged_in response.session.should_not be_nil session[:user].should_not be_nil end def should_not_be_logged_in response.session.should_not be_nil session[:user].should be_nil end end Unfortunately, the actual method its testing works fine,...