Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devise current_user not available when running tests #30

Open
homerlex opened this issue Sep 9, 2014 · 1 comment
Open

Devise current_user not available when running tests #30

homerlex opened this issue Sep 9, 2014 · 1 comment

Comments

@homerlex
Copy link

homerlex commented Sep 9, 2014

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?

@arnononlinebak
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants