2011-10-08 17:36:38 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2014-04-12 04:56:37 -04:00
|
|
|
describe "Admin::Projects", feature: true do
|
2011-10-26 09:46:25 -04:00
|
|
|
describe "GET /admin/projects" do
|
2012-08-25 13:43:55 -04:00
|
|
|
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 17:36:38 -04:00
|
|
|
end
|
|
|
|
|
2011-10-26 09:46:25 -04:00
|
|
|
describe "GET /admin/users" do
|
2012-08-25 13:43:55 -04:00
|
|
|
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 17:36:38 -04:00
|
|
|
end
|
|
|
|
|
2012-07-15 10:36:06 -04:00
|
|
|
describe "GET /admin/hooks" do
|
2012-08-25 13:43:55 -04:00
|
|
|
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 17:36:38 -04:00
|
|
|
end
|
|
|
|
end
|