diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-08-25 21:43:55 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-08-25 22:19:15 +0400 |
commit | 232389f4e8ebaffd125985ce63439cea407e85d5 (patch) | |
tree | 4dbc8a24153b71d3fc0b5f1bb1ad1a965e54391b /spec/requests/admin | |
parent | b2a5344a2d68922d5c6cb8de228fb9b41ce3efc4 (diff) |
Clean up request specs
Diffstat (limited to 'spec/requests/admin')
-rw-r--r-- | spec/requests/admin/security_spec.rb | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/spec/requests/admin/security_spec.rb b/spec/requests/admin/security_spec.rb index 0c369740cff..6306832628b 100644 --- a/spec/requests/admin/security_spec.rb +++ b/spec/requests/admin/security_spec.rb @@ -2,20 +2,26 @@ 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 } + 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 - 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 } + 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 - 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 } + subject { admin_hooks_path } + + it { should be_allowed_for :admin } + it { should be_denied_for :user } + it { should be_denied_for :visitor } end end |