gitlabhq/spec/requests/admin/security_spec.rb

28 lines
641 B
Ruby
Raw Normal View History

2011-10-08 23:36:38 +02:00
require 'spec_helper'
describe "Admin::Projects" do
describe "GET /admin/projects" do
subject { admin_projects_path }
it { should be_allowed_for :admin }
it { should be_denied_for :user }
it { should be_denied_for :visitor }
2011-10-08 23:36:38 +02:00
end
describe "GET /admin/users" do
subject { admin_users_path }
it { should be_allowed_for :admin }
it { should be_denied_for :user }
it { should be_denied_for :visitor }
2011-10-08 23:36:38 +02:00
end
2012-07-15 16:36:06 +02:00
describe "GET /admin/hooks" do
subject { admin_hooks_path }
it { should be_allowed_for :admin }
it { should be_denied_for :user }
it { should be_denied_for :visitor }
2011-10-08 23:36:38 +02:00
end
end