diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-28 00:09:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-28 00:09:42 +0300 |
commit | 6456305e5810391463cdf58d9b4952903047c05a (patch) | |
tree | 3a770fdf551d1fbba8bd9950a9961029c92f9c59 /spec/policies/release_policy_spec.rb | |
parent | c241fef1814b6f2fc5931f3d1e26de0378c02ccf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/policies/release_policy_spec.rb')
-rw-r--r-- | spec/policies/release_policy_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/policies/release_policy_spec.rb b/spec/policies/release_policy_spec.rb index 25468ae2ea2..5a34b1f4236 100644 --- a/spec/policies/release_policy_spec.rb +++ b/spec/policies/release_policy_spec.rb @@ -17,29 +17,6 @@ RSpec.describe ReleasePolicy, :request_store do subject { described_class.new(user, release) } - context 'when the evalute_protected_tag_for_release_permissions feature flag is disabled' do - before do - stub_feature_flags(evalute_protected_tag_for_release_permissions: false) - end - - it 'allows the user to create and update a release' do - is_expected.to be_allowed(:create_release) - is_expected.to be_allowed(:update_release) - end - - it 'prevents the user from destroying a release' do - is_expected.to be_disallowed(:destroy_release) - end - - context 'when the user is maintainer' do - let(:user) { maintainer } - - it 'allows the user to destroy a release' do - is_expected.to be_allowed(:destroy_release) - end - end - end - context 'when the user has access to the protected tag' do let_it_be(:protected_tag) { create(:protected_tag, :developers_can_create, name: release.tag, project: project) } |