diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-01 00:08:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-01 00:08:01 +0300 |
commit | d88cacce3f205151867ab3f9297f10cdae4a7025 (patch) | |
tree | a511ad558a92a66d0ad8ab635b99d16387be0d2d /spec/policies | |
parent | 9e7f94a7408534411dc8da69c9e3ad3a55722b51 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/policies')
-rw-r--r-- | spec/policies/namespaces/user_namespace_policy_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/policies/namespaces/user_namespace_policy_spec.rb b/spec/policies/namespaces/user_namespace_policy_spec.rb index 42d27d0f3d6..bb821490e30 100644 --- a/spec/policies/namespaces/user_namespace_policy_spec.rb +++ b/spec/policies/namespaces/user_namespace_policy_spec.rb @@ -35,6 +35,13 @@ RSpec.describe Namespaces::UserNamespacePolicy do it { is_expected.to be_disallowed(:create_projects) } it { is_expected.to be_disallowed(:transfer_projects) } end + + context 'bot user' do + let(:owner) { create(:user, :project_bot) } + + it { is_expected.to be_disallowed(:create_projects) } + it { is_expected.to be_disallowed(:transfer_projects) } + end end context 'admin' do |