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>2021-03-04 03:11:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-04 03:11:19 +0300
commitb3930fc34f7ed725bb79fc0ec563602ed20d879b (patch)
tree086bd7237ad86cf778c773cfa512763bc5dd8567 /spec/tasks
parent63b3a14f15ee5c202d78b7bd72030f4f437ef982 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/cache/clear/redis_spec.rb25
1 files changed, 1 insertions, 24 deletions
diff --git a/spec/tasks/cache/clear/redis_spec.rb b/spec/tasks/cache/clear/redis_spec.rb
index 2c0a5dcd54d..d2de068f254 100644
--- a/spec/tasks/cache/clear/redis_spec.rb
+++ b/spec/tasks/cache/clear/redis_spec.rb
@@ -2,7 +2,7 @@
require 'rake_helper'
-RSpec.describe 'clearing redis cache', :clean_gitlab_redis_cache do
+RSpec.describe 'clearing redis cache' do
before do
Rake.application.rake_require 'tasks/cache'
end
@@ -21,27 +21,4 @@ RSpec.describe 'clearing redis cache', :clean_gitlab_redis_cache do
expect { run_rake_task('cache:clear:redis') }.to change { pipeline_status.has_cache? }
end
end
-
- describe 'invoking clear description templates cache rake task' do
- using RSpec::Parameterized::TableSyntax
-
- before do
- stub_env('project_ids', project_ids) if project_ids
- service = double(:service, execute: true)
-
- expect(Gitlab::Cleanup::Redis::DescriptionTemplatesCacheKeysPatternBuilder).to receive(:new).with(expected_project_ids).and_return(service)
- expect(Gitlab::Cleanup::Redis::BatchDeleteByPattern).to receive(:new).and_return(service)
- end
-
- where(:project_ids, :expected_project_ids) do
- nil | [] # this acts as no argument is being passed
- '1' | %w[1]
- '1, 2, 3' | %w[1 2 3]
- '1, 2, some-string, 3' | %w[1 2 some-string 3]
- end
-
- with_them do
- specify { run_rake_task('cache:clear:description_templates') }
- end
- end
end