rails-observers icon indicating copy to clipboard operation
rails-observers copied to clipboard

Devise current_user not available when running tests

Open homerlex opened this issue 10 years ago • 1 comments

Upgrade our app from Rails 3.2 to Rails 4.1.5. When I run the app in development mode I can access Devise's current user within a Sweeper's callback. However, when I run tests current_user is nil.

The same code works fine when running tests in 3.2. Could there possibly be some gem load order problem when I'm running tests that might be causing this?

homerlex avatar Sep 09 '14 14:09 homerlex

:+1:

arnononlinebak avatar Nov 26 '14 15:11 arnononlinebak