Can anyone tell me what I’m doing wrong here?
it ‘should try to set the current user from the session’ do
controller.session[SessionKeys::USER_ID] = 1
user = mock_model(User)
When I watch the spec with my debugger, when it gets to the code, the
session is empty, and the spec fails. What would be causing this? Am I
setting the session wrong? I have also tried just session, and
request.session with the same results.