1 2 3 4 5 6
module HttpAuthentication def http_login(user, password = 'password') user_session = create(:session, user: user) cookies.signed[:raphael] = user_session.key end end