You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question regarding the login_as helper. I'm using Rails 6 application with Devise (which uses Warden). I have a spec where I want to test the login page as a real user, so I have a method like this:
The problem is after I logout and then try to go login again. I get an error that I am already signed in. If I use login_as(user, scope: :user) the issue goes away.
Do we have to use the login_as method for proper sign-in/sign-out functionality in specs, or am I missing something in my manual login approach? (Sorry, if this is a Devise question and not a Warden question)
The text was updated successfully, but these errors were encountered:
I have a question regarding the
login_as
helper. I'm using Rails 6 application with Devise (which uses Warden). I have a spec where I want to test the login page as a real user, so I have a method like this:The problem is after I logout and then try to go login again. I get an error that I am already signed in. If I use
login_as(user, scope: :user)
the issue goes away.Do we have to use the login_as method for proper sign-in/sign-out functionality in specs, or am I missing something in my manual login approach? (Sorry, if this is a Devise question and not a Warden question)
The text was updated successfully, but these errors were encountered: