I am trying to use authlogic's test helpers in Cucumber, calling activate_authlogic.
Our application_controller has a current_user_session method.
When we drop into the debugger mid-story, controller
returns a Authlogic::TestCase::MockController
.
But when we call controller.current_user_session.
The error occurred while evaluating nil.current_user_session
.
How does this mock suddenly become a nil?
And does this mock controller know about our application controllers' code?