title: How to set session variables in Rails integration tests
body: <p>In Rails integration tests, how do I set a session variable (:user_id in my case)?</p>
  
  <p>Obviously it's not a full integration test then, but given that in my app user authentication cannot happen without manual user interaction, can i somehow work around and have a session variable set manually?</p>
  
  <p>Have tried the following: "session" is not available in that scope, open_session returns a session which I did not find a way to update.</p>