Rails tests with sessions

I've always used @request.session[:foo]=:bar

Fred