Allow to sign in with two different users in the same functional test with Devise::TestHelpers.

This commit is contained in:
José Valim
2009-12-14 22:48:15 +01:00
parent b8c216e0db
commit b04241ddff
4 changed files with 33 additions and 7 deletions

View File

@@ -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