Module: Lockdown::RspecHelper

Defined in:
lib/lockdown/rspec_helper.rb

Instance Method Summary collapse

Instance Method Details

#login_adminObject



3
4
5
# File 'lib/lockdown/rspec_helper.rb', line 3

def 
  (:admin)
end

#login_standardObject



17
18
19
# File 'lib/lockdown/rspec_helper.rb', line 17

def 
  
end

#login_with_groups(*user_group_symbols) ⇒ Object Also known as: login_with_group



7
8
9
10
11
12
13
# File 'lib/lockdown/rspec_helper.rb', line 7

def (*user_group_symbols)
  access_rights = Lockdown::System.standard_authorized_user_rights
  user_group_symbols.each do |ugs|
    access_rights << Lockdown::System.access_rights_for_user_group(ugs)
  end
  controller.session[:access_rights] = access_rights.flatten
end

#public_userObject



21
22
23
# File 'lib/lockdown/rspec_helper.rb', line 21

def public_user
  setup_public_user
end