Module: CalnetAuthenticated::TestHelper::ClassMethods

Defined in:
lib/calnet_authenticated/test_helper.rb

Instance Method Summary collapse

Instance Method Details

#all_test_rolesObject



91
92
93
# File 'lib/calnet_authenticated/test_helper.rb', line 91

def all_test_roles
	@all_test_roles = %w( superuser administrator editor interviewer reader active_user )
end

#non_site_administratorsObject



71
72
73
# File 'lib/calnet_authenticated/test_helper.rb', line 71

def non_site_administrators
	@non_site_administrators ||= ( all_test_roles - site_administrators )
end

#non_site_editorsObject



79
80
81
# File 'lib/calnet_authenticated/test_helper.rb', line 79

def non_site_editors
	@non_site_editors ||= ( all_test_roles - site_editors )
end

#non_site_readersObject



87
88
89
# File 'lib/calnet_authenticated/test_helper.rb', line 87

def non_site_readers
	@non_site_readers ||= ( all_test_roles - site_readers )
end

#site_administratorsObject



67
68
69
# File 'lib/calnet_authenticated/test_helper.rb', line 67

def site_administrators
	@site_administrators ||= %w( superuser administrator )
end

#site_editorsObject



75
76
77
# File 'lib/calnet_authenticated/test_helper.rb', line 75

def site_editors
	@site_editors ||= %w( superuser administrator editor )
end

#site_readersObject



83
84
85
# File 'lib/calnet_authenticated/test_helper.rb', line 83

def site_readers
	@site_readers ||= %w( superuser administrator editor interviewer reader )
end