diff options
author | Shinya Maeda <shinya@gitlab.com> | 2019-04-03 12:23:11 +0700 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2019-04-03 13:55:39 +0700 |
commit | e3b38ae09d8e84023a133d48b038994aa122f4b9 (patch) | |
tree | 08a4b01bbf1147b9cb6ca86ed7316567febdcd24 | |
parent | 6c56bf3186153b66d119708ba4efdda2f41dfde7 (diff) | |
download | gitlab-ce-e3b38ae09d8e84023a133d48b038994aa122f4b9.tar.gz |
Fix Release permission spec
We recently changed the permission model to disallow guests to read
Releases. The spec should be updated as well according to the
expectation.
-rw-r--r-- | spec/support/shared_context/policies/project_policy_shared_context.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_context/policies/project_policy_shared_context.rb b/spec/support/shared_context/policies/project_policy_shared_context.rb index 8bcd26ec0cd..3ad6e067674 100644 --- a/spec/support/shared_context/policies/project_policy_shared_context.rb +++ b/spec/support/shared_context/policies/project_policy_shared_context.rb @@ -15,7 +15,7 @@ RSpec.shared_context 'ProjectPolicy context' do read_project_for_iids read_issue_iid read_label read_milestone read_project_snippet read_project_member read_note create_project create_issue create_note upload_file create_merge_request_in - award_emoji read_release + award_emoji ] end @@ -24,7 +24,7 @@ RSpec.shared_context 'ProjectPolicy context' do download_code fork_project create_project_snippet update_issue admin_issue admin_label admin_list read_commit_status read_build read_container_image read_pipeline read_environment read_deployment - read_merge_request download_wiki_code read_sentry_issue + read_merge_request download_wiki_code read_sentry_issue read_release ] end |