mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Allow to sign in with two different users in the same functional test with Devise::TestHelpers.
This commit is contained in:
@@ -78,6 +78,7 @@ module Devise
|
||||
#
|
||||
def sign_out(resource_or_scope)
|
||||
scope = Devise::Mapping.find_scope!(resource_or_scope)
|
||||
@controller.instance_variable_set(:"@current_#{scope}", nil)
|
||||
warden.logout(scope)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user