diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-07-22 00:39:18 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-07-22 00:39:18 -0400 |
commit | b42422a7a97d376fb5f78e8dfa614857d6b8d1fa (patch) | |
tree | 27e23d24667cd40d1894946232318fa68bf003d2 /spec/features/security | |
parent | b24d5f13a5dde7ab85dce93900fa309b3485adb9 (diff) | |
download | gitlab-ce-b42422a7a97d376fb5f78e8dfa614857d6b8d1fa.tar.gz |
Move spec/features/admin/security_spec to spec/features/securityrs-security-spec-speed
Diffstat (limited to 'spec/features/security')
-rw-r--r-- | spec/features/security/admin_access_spec.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/features/security/admin_access_spec.rb b/spec/features/security/admin_access_spec.rb new file mode 100644 index 00000000000..fe8cd7b7602 --- /dev/null +++ b/spec/features/security/admin_access_spec.rb @@ -0,0 +1,29 @@ +require 'spec_helper' + +describe "Admin::Projects", feature: true do + include AccessMatchers + + describe "GET /admin/projects" do + subject { admin_namespaces_projects_path } + + it { is_expected.to be_allowed_for :admin } + it { is_expected.to be_denied_for :user } + it { is_expected.to be_denied_for :visitor } + end + + describe "GET /admin/users" do + subject { admin_users_path } + + it { is_expected.to be_allowed_for :admin } + it { is_expected.to be_denied_for :user } + it { is_expected.to be_denied_for :visitor } + end + + describe "GET /admin/hooks" do + subject { admin_hooks_path } + + it { is_expected.to be_allowed_for :admin } + it { is_expected.to be_denied_for :user } + it { is_expected.to be_denied_for :visitor } + end +end |