search for: should_be_logged_in

Displaying 2 results from an estimated 2 matches for "should_be_logged_in".

2007 Jul 24
6
Mocking Access Control
...tor" do @user.stub!(:type).and_return("Tutor") post :login, {:login => {:email => "teamup at teamup.host", :password => "teamup"}} 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_n...
2007 Dec 21
4
StoryRunner docs/guidance
Hi all, Are there any plans for better documentation for the new StoryRunner feature? I tried to use it today (with Rails), and had a hard time getting my head around whether I was doing it "right" and exactly what things are appropriate to test at that level (this might be exacerbated by the fact that I''ve never really used integration testing that much). A full example of