Module: CalnetAuthenticated::TestHelper::ClassMethods
- Defined in:
- lib/calnet_authenticated/test_helper.rb
Instance Method Summary collapse
- #all_test_roles ⇒ Object
- #non_site_administrators ⇒ Object
- #non_site_editors ⇒ Object
- #non_site_readers ⇒ Object
- #site_administrators ⇒ Object
- #site_editors ⇒ Object
- #site_readers ⇒ Object
Instance Method Details
#all_test_roles ⇒ Object
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_administrators ⇒ Object
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_editors ⇒ Object
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_readers ⇒ Object
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_administrators ⇒ Object
67 68 69 |
# File 'lib/calnet_authenticated/test_helper.rb', line 67 def site_administrators @site_administrators ||= %w( superuser administrator ) end |
#site_editors ⇒ Object
75 76 77 |
# File 'lib/calnet_authenticated/test_helper.rb', line 75 def site_editors @site_editors ||= %w( superuser administrator editor ) end |
#site_readers ⇒ Object
83 84 85 |
# File 'lib/calnet_authenticated/test_helper.rb', line 83 def site_readers @site_readers ||= %w( superuser administrator editor interviewer reader ) end |