Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-26 00:10:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-26 00:10:58 +0300
commit098444d917f660f870daa75e9166dcb735573ad4 (patch)
treebdffb43023060a8432b4a373fb3a789d7ab7b289 /spec/policies
parent62866a623e24242c6f7a1a93dc2aca1467d6a6ae (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/policies')
-rw-r--r--spec/policies/concerns/policy_actor_spec.rb6
-rw-r--r--spec/policies/global_policy_spec.rb7
2 files changed, 0 insertions, 13 deletions
diff --git a/spec/policies/concerns/policy_actor_spec.rb b/spec/policies/concerns/policy_actor_spec.rb
index 7fd9db67032..a38725d73d6 100644
--- a/spec/policies/concerns/policy_actor_spec.rb
+++ b/spec/policies/concerns/policy_actor_spec.rb
@@ -20,10 +20,4 @@ RSpec.describe PolicyActor, feature_category: :shared do
# initialized. So here we just use an instance
expect(build(:user).methods).to include(*methods)
end
-
- describe '#security_policy_bot?' do
- subject { PolicyActorTestClass.new.security_policy_bot? }
-
- it { is_expected.to eq(false) }
- end
end
diff --git a/spec/policies/global_policy_spec.rb b/spec/policies/global_policy_spec.rb
index 475e8f981dd..52fea8d782e 100644
--- a/spec/policies/global_policy_spec.rb
+++ b/spec/policies/global_policy_spec.rb
@@ -10,7 +10,6 @@ RSpec.describe GlobalPolicy, feature_category: :shared do
let_it_be(:service_account) { create(:user, :service_account) }
let_it_be(:migration_bot) { create(:user, :migration_bot) }
let_it_be(:security_bot) { create(:user, :security_bot) }
- let_it_be(:security_policy_bot) { create(:user, :security_policy_bot) }
let_it_be(:llm_bot) { create(:user, :llm_bot) }
let_it_be_with_reload(:current_user) { create(:user) }
let_it_be(:user) { create(:user) }
@@ -411,12 +410,6 @@ RSpec.describe GlobalPolicy, feature_category: :shared do
it { is_expected.to be_allowed(:access_git) }
end
- context 'security policy bot' do
- let(:current_user) { security_policy_bot }
-
- it { is_expected.to be_allowed(:access_git) }
- end
-
describe 'deactivated user' do
before do
current_user.deactivate