Commit 98bea4b1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Updatev security tests since admin is a superuser now. Has access to any project

parent c610347c
...@@ -33,7 +33,7 @@ describe "Application access" do ...@@ -33,7 +33,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -44,7 +44,7 @@ describe "Application access" do ...@@ -44,7 +44,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -55,7 +55,7 @@ describe "Application access" do ...@@ -55,7 +55,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -66,7 +66,7 @@ describe "Application access" do ...@@ -66,7 +66,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -77,7 +77,7 @@ describe "Application access" do ...@@ -77,7 +77,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -88,7 +88,7 @@ describe "Application access" do ...@@ -88,7 +88,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -99,7 +99,7 @@ describe "Application access" do ...@@ -99,7 +99,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -114,7 +114,7 @@ describe "Application access" do ...@@ -114,7 +114,7 @@ describe "Application access" do
it { @blob_path.should be_allowed_for master } it { @blob_path.should be_allowed_for master }
it { @blob_path.should be_allowed_for reporter } it { @blob_path.should be_allowed_for reporter }
it { @blob_path.should be_denied_for :admin } it { @blob_path.should be_allowed_for :admin }
it { @blob_path.should be_denied_for guest } it { @blob_path.should be_denied_for guest }
it { @blob_path.should be_denied_for :user } it { @blob_path.should be_denied_for :user }
it { @blob_path.should be_denied_for :visitor } it { @blob_path.should be_denied_for :visitor }
...@@ -125,7 +125,7 @@ describe "Application access" do ...@@ -125,7 +125,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_denied_for reporter } it { should be_denied_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -136,7 +136,7 @@ describe "Application access" do ...@@ -136,7 +136,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_denied_for reporter } it { should be_denied_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -147,7 +147,7 @@ describe "Application access" do ...@@ -147,7 +147,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -158,7 +158,7 @@ describe "Application access" do ...@@ -158,7 +158,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -169,7 +169,7 @@ describe "Application access" do ...@@ -169,7 +169,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -180,7 +180,7 @@ describe "Application access" do ...@@ -180,7 +180,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -196,7 +196,7 @@ describe "Application access" do ...@@ -196,7 +196,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -212,7 +212,7 @@ describe "Application access" do ...@@ -212,7 +212,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
...@@ -223,7 +223,7 @@ describe "Application access" do ...@@ -223,7 +223,7 @@ describe "Application access" do
it { should be_allowed_for master } it { should be_allowed_for master }
it { should be_allowed_for reporter } it { should be_allowed_for reporter }
it { should be_denied_for :admin } it { should be_allowed_for :admin }
it { should be_denied_for guest } it { should be_denied_for guest }
it { should be_denied_for :user } it { should be_denied_for :user }
it { should be_denied_for :visitor } it { should be_denied_for :visitor }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment