2011-10-08 23:36:38 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe "Admin::Projects" do
|
2011-10-26 15:46:25 +02:00
|
|
|
describe "GET /admin/projects" do
|
2011-10-08 23:36:38 +02:00
|
|
|
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
|
|
|
|
|
2011-10-26 15:46:25 +02:00
|
|
|
describe "GET /admin/users" do
|
2011-10-08 23:36:38 +02:00
|
|
|
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
|
|
|
|
|
2012-07-15 16:36:06 +02:00
|
|
|
describe "GET /admin/hooks" do
|
|
|
|
it { admin_hooks_path.should be_allowed_for :admin }
|
|
|
|
it { admin_hooks_path.should be_denied_for :user }
|
|
|
|
it { admin_hooks_path.should be_denied_for :visitor }
|
2011-10-08 23:36:38 +02:00
|
|
|
end
|
|
|
|
end
|