Commit a7ba81ea5d3f2c9b0085db68e880e89cec960f6f

Authored by Stephen Lottermoser
1 parent 4c44c5ef

Fix internally public projects tests

Takes into account 98bea4b1ff and 3b88636d3c.
Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
spec/features/security/project_access_spec.rb
... ... @@ -232,7 +232,7 @@ describe "Application access" do
232 232  
233 233  
234 234 describe "PublicProject" do
235   - let(:project) { create(:project) }
  235 + let(:project) { create(:project_with_code) }
236 236  
237 237 let(:master) { create(:user) }
238 238 let(:guest) { create(:user) }
... ... @@ -356,7 +356,7 @@ describe "Application access" do
356 356  
357 357 it { should be_allowed_for master }
358 358 it { should be_denied_for reporter }
359   - it { should be_denied_for :admin }
  359 + it { should be_allowed_for :admin }
360 360 it { should be_denied_for guest }
361 361 it { should be_denied_for :user }
362 362 it { should be_denied_for :visitor }
... ... @@ -367,7 +367,7 @@ describe "Application access" do
367 367  
368 368 it { should be_allowed_for master }
369 369 it { should be_denied_for reporter }
370   - it { should be_denied_for :admin }
  370 + it { should be_allowed_for :admin }
371 371 it { should be_denied_for guest }
372 372 it { should be_denied_for :user }
373 373 it { should be_denied_for :visitor }
... ... @@ -400,7 +400,7 @@ describe "Application access" do
400 400  
401 401 it { should be_allowed_for master }
402 402 it { should be_allowed_for reporter }
403   - it { should be_denied_for :admin }
  403 + it { should be_allowed_for :admin }
404 404 it { should be_denied_for guest }
405 405 it { should be_denied_for :user }
406 406 it { should be_denied_for :visitor }
... ...