d62200cad4
* Remove trailing whitespace * Converts hard-tabs into two-space soft-tabs * Remove consecutive blank lines
27 lines
940 B
Ruby
27 lines
940 B
Ruby
require 'spec_helper'
|
|
|
|
describe "Admin::Projects" do
|
|
describe "GET /admin/projects" do
|
|
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
|
|
|
|
describe "GET /admin/users" do
|
|
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
|
|
|
|
describe "GET /admin/team_members" do
|
|
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
|
|
|
|
describe "GET /admin/emails" do
|
|
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
|