diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-09 06:08:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-09 06:08:17 +0300 |
commit | 5f003678af241fe26592d90d9d1ce45dee495a9e (patch) | |
tree | 20124e43327d5b7ff90d9382e932d2713587cea9 /spec/policies/blob_policy_spec.rb | |
parent | ef270a0e19729fed50f9bb955f113daf5034d366 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/policies/blob_policy_spec.rb')
-rw-r--r-- | spec/policies/blob_policy_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/policies/blob_policy_spec.rb b/spec/policies/blob_policy_spec.rb index 2b0465f3615..1be2318a0fe 100644 --- a/spec/policies/blob_policy_spec.rb +++ b/spec/policies/blob_policy_spec.rb @@ -20,8 +20,11 @@ RSpec.describe BlobPolicy do with_them do it 'grants permission' do enable_admin_mode!(user) if admin_mode - project.update!(visibility_level: Gitlab::VisibilityLevel.level_value(project_level.to_s)) - update_feature_access_level(project, feature_access_level) + update_feature_access_level( + project, + feature_access_level, + visibility_level: Gitlab::VisibilityLevel.level_value(project_level.to_s) + ) if expected_count == 1 expect(policy).to be_allowed(:read_blob) |