2011-10-08 21:36:38 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2014-04-12 08:56:37 +00:00
|
|
|
describe "Admin::Projects", feature: true do
|
2011-10-26 13:46:25 +00:00
|
|
|
describe "GET /admin/projects" do
|
2015-01-24 18:02:58 +00:00
|
|
|
subject { admin_namespaces_projects_path }
|
2012-08-25 17:43:55 +00:00
|
|
|
|
2015-02-12 18:17:35 +00:00
|
|
|
it { is_expected.to be_allowed_for :admin }
|
|
|
|
it { is_expected.to be_denied_for :user }
|
|
|
|
it { is_expected.to be_denied_for :visitor }
|
2011-10-08 21:36:38 +00:00
|
|
|
end
|
|
|
|
|
2011-10-26 13:46:25 +00:00
|
|
|
describe "GET /admin/users" do
|
2012-08-25 17:43:55 +00:00
|
|
|
subject { admin_users_path }
|
|
|
|
|
2015-02-12 18:17:35 +00:00
|
|
|
it { is_expected.to be_allowed_for :admin }
|
|
|
|
it { is_expected.to be_denied_for :user }
|
|
|
|
it { is_expected.to be_denied_for :visitor }
|
2011-10-08 21:36:38 +00:00
|
|
|
end
|
|
|
|
|
2012-07-15 14:36:06 +00:00
|
|
|
describe "GET /admin/hooks" do
|
2012-08-25 17:43:55 +00:00
|
|
|
subject { admin_hooks_path }
|
|
|
|
|
2015-02-12 18:17:35 +00:00
|
|
|
it { is_expected.to be_allowed_for :admin }
|
|
|
|
it { is_expected.to be_denied_for :user }
|
|
|
|
it { is_expected.to be_denied_for :visitor }
|
2011-10-08 21:36:38 +00:00
|
|
|
end
|
|
|
|
end
|