Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests/admin/security_spec.rb')
-rw-r--r--spec/requests/admin/security_spec.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/requests/admin/security_spec.rb b/spec/requests/admin/security_spec.rb
new file mode 100644
index 00000000000..743f9f08cef
--- /dev/null
+++ b/spec/requests/admin/security_spec.rb
@@ -0,0 +1,27 @@
+require 'spec_helper'
+
+describe "Admin::Projects" do
+ describe "GET /admin/projects" do
+ it { admin_projects_path.should be_allowed_for :admin }
+ it { admin_projects_path.should be_denied_for :user }
+ it { admin_projects_path.should be_denied_for :visitor }
+ end
+
+ describe "GET /admin/users" do
+ it { admin_users_path.should be_allowed_for :admin }
+ it { admin_users_path.should be_denied_for :user }
+ it { admin_users_path.should be_denied_for :visitor }
+ end
+
+ describe "GET /admin/team_members" do
+ it { admin_team_members_path.should be_allowed_for :admin }
+ it { admin_team_members_path.should be_denied_for :user }
+ it { admin_team_members_path.should be_denied_for :visitor }
+ end
+
+ describe "GET /admin/emails" do
+ it { admin_emails_path.should be_allowed_for :admin }
+ it { admin_emails_path.should be_denied_for :user }
+ it { admin_emails_path.should be_denied_for :visitor }
+ end
+end