title: How can I test authlogic's current_user in Cucumber?
body: <p>I am trying to use authlogic's test helpers in <a href="https://github.com/aslakhellesoy/cucumber/wiki/" rel="nofollow noreferrer">Cucumber</a>, calling activate_authlogic.</p>
  
  <p>Our application_controller has a current_user_session method.</p>
  
  <p>When we drop into the debugger mid-story, <code>controller</code> returns a <code>Authlogic::TestCase::MockController</code>.</p>
  
  <p>But when we call controller.current_user_session.</p>
  
  <p>The error occurred while evaluating <code>nil.current_user_session</code>.</p>
  
  <p>How does this mock suddenly become a nil?</p>
  
  <p>And does this mock controller know about our application controllers' code?</p>