search for: teamup

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

2007 Jul 24
6
Mocking Access Control
....and_return("john at doe.com") @user.stub!(:password).and_return("dummypassword") User.stub!(:new).and_return(@user) end it "should login as a tutor" 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 =&...