Commit 98bea4b1ff6e7f5fdc07d6712cc6e1fd2d1e53ea
1 parent
c610347c
Exists in
master
and in
4 other branches
Updatev security tests since admin is a superuser now. Has access to any project
Showing
1 changed file
with
17 additions
and
17 deletions
Show diff stats
spec/features/security/project_access_spec.rb
... | ... | @@ -33,7 +33,7 @@ describe "Application access" do |
33 | 33 | |
34 | 34 | it { should be_allowed_for master } |
35 | 35 | it { should be_allowed_for reporter } |
36 | - it { should be_denied_for :admin } | |
36 | + it { should be_allowed_for :admin } | |
37 | 37 | it { should be_denied_for guest } |
38 | 38 | it { should be_denied_for :user } |
39 | 39 | it { should be_denied_for :visitor } |
... | ... | @@ -44,7 +44,7 @@ describe "Application access" do |
44 | 44 | |
45 | 45 | it { should be_allowed_for master } |
46 | 46 | it { should be_allowed_for reporter } |
47 | - it { should be_denied_for :admin } | |
47 | + it { should be_allowed_for :admin } | |
48 | 48 | it { should be_denied_for guest } |
49 | 49 | it { should be_denied_for :user } |
50 | 50 | it { should be_denied_for :visitor } |
... | ... | @@ -55,7 +55,7 @@ describe "Application access" do |
55 | 55 | |
56 | 56 | it { should be_allowed_for master } |
57 | 57 | it { should be_allowed_for reporter } |
58 | - it { should be_denied_for :admin } | |
58 | + it { should be_allowed_for :admin } | |
59 | 59 | it { should be_denied_for guest } |
60 | 60 | it { should be_denied_for :user } |
61 | 61 | it { should be_denied_for :visitor } |
... | ... | @@ -66,7 +66,7 @@ describe "Application access" do |
66 | 66 | |
67 | 67 | it { should be_allowed_for master } |
68 | 68 | it { should be_allowed_for reporter } |
69 | - it { should be_denied_for :admin } | |
69 | + it { should be_allowed_for :admin } | |
70 | 70 | it { should be_denied_for guest } |
71 | 71 | it { should be_denied_for :user } |
72 | 72 | it { should be_denied_for :visitor } |
... | ... | @@ -77,7 +77,7 @@ describe "Application access" do |
77 | 77 | |
78 | 78 | it { should be_allowed_for master } |
79 | 79 | it { should be_allowed_for reporter } |
80 | - it { should be_denied_for :admin } | |
80 | + it { should be_allowed_for :admin } | |
81 | 81 | it { should be_denied_for guest } |
82 | 82 | it { should be_denied_for :user } |
83 | 83 | it { should be_denied_for :visitor } |
... | ... | @@ -88,7 +88,7 @@ describe "Application access" do |
88 | 88 | |
89 | 89 | it { should be_allowed_for master } |
90 | 90 | it { should be_allowed_for reporter } |
91 | - it { should be_denied_for :admin } | |
91 | + it { should be_allowed_for :admin } | |
92 | 92 | it { should be_denied_for guest } |
93 | 93 | it { should be_denied_for :user } |
94 | 94 | it { should be_denied_for :visitor } |
... | ... | @@ -99,7 +99,7 @@ describe "Application access" do |
99 | 99 | |
100 | 100 | it { should be_allowed_for master } |
101 | 101 | it { should be_allowed_for reporter } |
102 | - it { should be_denied_for :admin } | |
102 | + it { should be_allowed_for :admin } | |
103 | 103 | it { should be_denied_for guest } |
104 | 104 | it { should be_denied_for :user } |
105 | 105 | it { should be_denied_for :visitor } |
... | ... | @@ -114,7 +114,7 @@ describe "Application access" do |
114 | 114 | |
115 | 115 | it { @blob_path.should be_allowed_for master } |
116 | 116 | it { @blob_path.should be_allowed_for reporter } |
117 | - it { @blob_path.should be_denied_for :admin } | |
117 | + it { @blob_path.should be_allowed_for :admin } | |
118 | 118 | it { @blob_path.should be_denied_for guest } |
119 | 119 | it { @blob_path.should be_denied_for :user } |
120 | 120 | it { @blob_path.should be_denied_for :visitor } |
... | ... | @@ -125,7 +125,7 @@ describe "Application access" do |
125 | 125 | |
126 | 126 | it { should be_allowed_for master } |
127 | 127 | it { should be_denied_for reporter } |
128 | - it { should be_denied_for :admin } | |
128 | + it { should be_allowed_for :admin } | |
129 | 129 | it { should be_denied_for guest } |
130 | 130 | it { should be_denied_for :user } |
131 | 131 | it { should be_denied_for :visitor } |
... | ... | @@ -136,7 +136,7 @@ describe "Application access" do |
136 | 136 | |
137 | 137 | it { should be_allowed_for master } |
138 | 138 | it { should be_denied_for reporter } |
139 | - it { should be_denied_for :admin } | |
139 | + it { should be_allowed_for :admin } | |
140 | 140 | it { should be_denied_for guest } |
141 | 141 | it { should be_denied_for :user } |
142 | 142 | it { should be_denied_for :visitor } |
... | ... | @@ -147,7 +147,7 @@ describe "Application access" do |
147 | 147 | |
148 | 148 | it { should be_allowed_for master } |
149 | 149 | it { should be_allowed_for reporter } |
150 | - it { should be_denied_for :admin } | |
150 | + it { should be_allowed_for :admin } | |
151 | 151 | it { should be_denied_for guest } |
152 | 152 | it { should be_denied_for :user } |
153 | 153 | it { should be_denied_for :visitor } |
... | ... | @@ -158,7 +158,7 @@ describe "Application access" do |
158 | 158 | |
159 | 159 | it { should be_allowed_for master } |
160 | 160 | it { should be_allowed_for reporter } |
161 | - it { should be_denied_for :admin } | |
161 | + it { should be_allowed_for :admin } | |
162 | 162 | it { should be_denied_for guest } |
163 | 163 | it { should be_denied_for :user } |
164 | 164 | it { should be_denied_for :visitor } |
... | ... | @@ -169,7 +169,7 @@ describe "Application access" do |
169 | 169 | |
170 | 170 | it { should be_allowed_for master } |
171 | 171 | it { should be_allowed_for reporter } |
172 | - it { should be_denied_for :admin } | |
172 | + it { should be_allowed_for :admin } | |
173 | 173 | it { should be_denied_for guest } |
174 | 174 | it { should be_denied_for :user } |
175 | 175 | it { should be_denied_for :visitor } |
... | ... | @@ -180,7 +180,7 @@ describe "Application access" do |
180 | 180 | |
181 | 181 | it { should be_allowed_for master } |
182 | 182 | it { should be_allowed_for reporter } |
183 | - it { should be_denied_for :admin } | |
183 | + it { should be_allowed_for :admin } | |
184 | 184 | it { should be_denied_for guest } |
185 | 185 | it { should be_denied_for :user } |
186 | 186 | it { should be_denied_for :visitor } |
... | ... | @@ -196,7 +196,7 @@ describe "Application access" do |
196 | 196 | |
197 | 197 | it { should be_allowed_for master } |
198 | 198 | it { should be_allowed_for reporter } |
199 | - it { should be_denied_for :admin } | |
199 | + it { should be_allowed_for :admin } | |
200 | 200 | it { should be_denied_for guest } |
201 | 201 | it { should be_denied_for :user } |
202 | 202 | it { should be_denied_for :visitor } |
... | ... | @@ -212,7 +212,7 @@ describe "Application access" do |
212 | 212 | |
213 | 213 | it { should be_allowed_for master } |
214 | 214 | it { should be_allowed_for reporter } |
215 | - it { should be_denied_for :admin } | |
215 | + it { should be_allowed_for :admin } | |
216 | 216 | it { should be_denied_for guest } |
217 | 217 | it { should be_denied_for :user } |
218 | 218 | it { should be_denied_for :visitor } |
... | ... | @@ -223,7 +223,7 @@ describe "Application access" do |
223 | 223 | |
224 | 224 | it { should be_allowed_for master } |
225 | 225 | it { should be_allowed_for reporter } |
226 | - it { should be_denied_for :admin } | |
226 | + it { should be_allowed_for :admin } | |
227 | 227 | it { should be_denied_for guest } |
228 | 228 | it { should be_denied_for :user } |
229 | 229 | it { should be_denied_for :visitor } | ... | ... |