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