adds specs for managed user session
This commit is contained in:
@@ -14,10 +14,6 @@ module CommonActions
|
||||
click_button 'Sign up'
|
||||
end
|
||||
|
||||
def login_as_manager(manager)
|
||||
visit management_sign_in_path(login: manager.username, clave_usuario: manager.password)
|
||||
end
|
||||
|
||||
def login_through_form_as(user)
|
||||
visit root_path
|
||||
click_link 'Log in'
|
||||
@@ -33,10 +29,7 @@ module CommonActions
|
||||
end
|
||||
|
||||
def login_managed_user(user)
|
||||
####
|
||||
# CHANGE ME
|
||||
# Should identify the user being managed
|
||||
####
|
||||
allow_any_instance_of(Management::BaseController).to receive(:current_user).and_return(user)
|
||||
end
|
||||
|
||||
def confirm_email
|
||||
|
||||
Reference in New Issue
Block a user