Commit a7ba81ea5d3f2c9b0085db68e880e89cec960f6f
1 parent
4c44c5ef
Exists in
master
and in
4 other branches
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,7 +232,7 @@ describe "Application access" do | ||
| 232 | 232 | ||
| 233 | 233 | ||
| 234 | describe "PublicProject" do | 234 | describe "PublicProject" do |
| 235 | - let(:project) { create(:project) } | 235 | + let(:project) { create(:project_with_code) } |
| 236 | 236 | ||
| 237 | let(:master) { create(:user) } | 237 | let(:master) { create(:user) } |
| 238 | let(:guest) { create(:user) } | 238 | let(:guest) { create(:user) } |
| @@ -356,7 +356,7 @@ describe "Application access" do | @@ -356,7 +356,7 @@ describe "Application access" do | ||
| 356 | 356 | ||
| 357 | it { should be_allowed_for master } | 357 | it { should be_allowed_for master } |
| 358 | it { should be_denied_for reporter } | 358 | it { should be_denied_for reporter } |
| 359 | - it { should be_denied_for :admin } | 359 | + it { should be_allowed_for :admin } |
| 360 | it { should be_denied_for guest } | 360 | it { should be_denied_for guest } |
| 361 | it { should be_denied_for :user } | 361 | it { should be_denied_for :user } |
| 362 | it { should be_denied_for :visitor } | 362 | it { should be_denied_for :visitor } |
| @@ -367,7 +367,7 @@ describe "Application access" do | @@ -367,7 +367,7 @@ describe "Application access" do | ||
| 367 | 367 | ||
| 368 | it { should be_allowed_for master } | 368 | it { should be_allowed_for master } |
| 369 | it { should be_denied_for reporter } | 369 | it { should be_denied_for reporter } |
| 370 | - it { should be_denied_for :admin } | 370 | + it { should be_allowed_for :admin } |
| 371 | it { should be_denied_for guest } | 371 | it { should be_denied_for guest } |
| 372 | it { should be_denied_for :user } | 372 | it { should be_denied_for :user } |
| 373 | it { should be_denied_for :visitor } | 373 | it { should be_denied_for :visitor } |
| @@ -400,7 +400,7 @@ describe "Application access" do | @@ -400,7 +400,7 @@ describe "Application access" do | ||
| 400 | 400 | ||
| 401 | it { should be_allowed_for master } | 401 | it { should be_allowed_for master } |
| 402 | it { should be_allowed_for reporter } | 402 | it { should be_allowed_for reporter } |
| 403 | - it { should be_denied_for :admin } | 403 | + it { should be_allowed_for :admin } |
| 404 | it { should be_denied_for guest } | 404 | it { should be_denied_for guest } |
| 405 | it { should be_denied_for :user } | 405 | it { should be_denied_for :user } |
| 406 | it { should be_denied_for :visitor } | 406 | it { should be_denied_for :visitor } |