rails-observers
rails-observers copied to clipboard
Devise current_user not available when running tests
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?
:+1: