module Decidim::WardenTestHelpers
Public Instance Methods
relogin_as(user, scope: :user)
click to toggle source
Utility method to login in the middle of a test as a different user from the current one.
# File lib/decidim/dev/test/rspec_support/warden.rb, line 11 def relogin_as(user, scope: :user) logout scope login_as user, scope: scope end