Displaying 1 result from an estimated 1 matches for "097d63d".
Did you mean:
09763
2008 Mar 08
1
Session empty after request
Can anyone tell me what I''m doing wrong here?
it ''should try to set the current user from the session'' do
controller.session[SessionKeys::USER_ID] = 1
user = mock_model(User)
User.stub!(:find).and_return(user)
User.should_receive(:find).with(1).and_return(user)
controller.should_receive(:set_current_user)
do_request
end
When I watch the spec with my