2011-10-09 00:36:38 +03:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe "Admin::Projects" do
|
2011-10-26 18:46:25 +05:00
|
|
|
describe "GET /admin/projects" do
|
2011-10-09 00:36:38 +03: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 18:46:25 +05:00
|
|
|
describe "GET /admin/users" do
|
2011-10-09 00:36:38 +03: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
|
|
|
|
|
2011-10-26 18:46:25 +05:00
|
|
|
describe "GET /admin/team_members" do
|
2011-10-09 00:36:38 +03:00
|
|
|
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
|
|
|
|
|
2011-10-26 18:46:25 +05:00
|
|
|
describe "GET /admin/emails" do
|
2011-10-09 00:36:38 +03:00
|
|
|
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
|