summaryrefslogtreecommitdiff
path: root/spec/requests/admin/security_spec.rb
blob: 6306832628b8ba6aac2bbcd6b197d501341bccc9 (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
    subject { admin_projects_path }

    it { should be_allowed_for :admin }
    it { should be_denied_for :user }
    it { should be_denied_for :visitor }
  end

  describe "GET /admin/users" do
    subject { admin_users_path }

    it { should be_allowed_for :admin }
    it { should be_denied_for :user }
    it { should be_denied_for :visitor }
  end

  describe "GET /admin/hooks" do
    subject { admin_hooks_path }

    it { should be_allowed_for :admin }
    it { should be_denied_for :user }
    it { should be_denied_for :visitor }
  end
end