summaryrefslogtreecommitdiff
path: root/spec/requests/admin/security_spec.rb
blob: 27b601967691bbd9a88b1f6757fbd2ab9be8f281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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