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>2020-12-03 06:09:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-03 06:09:27 +0300
commite1e9056d03fec6d72771c7a4ba3fc1174b5ac009 (patch)
treef64ea9885566676cad66dc5442f4a4c375efaab7 /spec/policies
parent1502c20d04c7ff8d719175c76b0a2507ab390172 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/policies')
-rw-r--r--spec/policies/global_policy_spec.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/policies/global_policy_spec.rb b/spec/policies/global_policy_spec.rb
index e677f5558fd..71c65857dde 100644
--- a/spec/policies/global_policy_spec.rb
+++ b/spec/policies/global_policy_spec.rb
@@ -7,8 +7,6 @@ RSpec.describe GlobalPolicy do
let_it_be(:project_bot) { create(:user, :project_bot) }
let_it_be(:migration_bot) { create(:user, :migration_bot) }
- let_it_be(:security_bot) { create(:user, :security_bot) }
-
let(:current_user) { create(:user) }
let(:user) { create(:user) }
@@ -225,12 +223,6 @@ RSpec.describe GlobalPolicy do
it { is_expected.not_to be_allowed(:access_api) }
end
- context 'security bot' do
- let(:current_user) { security_bot }
-
- it { is_expected.not_to be_allowed(:access_api) }
- end
-
context 'user blocked pending approval' do
before do
current_user.block_pending_approval
@@ -361,12 +353,6 @@ RSpec.describe GlobalPolicy do
it { is_expected.to be_allowed(:access_git) }
end
- context 'security bot' do
- let(:current_user) { security_bot }
-
- it { is_expected.to be_allowed(:access_git) }
- end
-
describe 'deactivated user' do
before do
current_user.deactivate
@@ -527,12 +513,6 @@ RSpec.describe GlobalPolicy do
it { is_expected.not_to be_allowed(:log_in) }
end
- context 'security bot' do
- let(:current_user) { security_bot }
-
- it { is_expected.not_to be_allowed(:log_in) }
- end
-
context 'user blocked pending approval' do
before do
current_user.block_pending_approval