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>2022-07-21 00:10:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-21 00:10:19 +0300
commitf1f255857dd72d1aa234ea4874eadf6f4f1758ba (patch)
treeecfbd4ccbf1d2d625d9433ded2416079c6ca1116 /spec/workers
parent61b943c213065636abd4ebb34a3fba5412aa047f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/pages/invalidate_domain_cache_worker_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/workers/pages/invalidate_domain_cache_worker_spec.rb b/spec/workers/pages/invalidate_domain_cache_worker_spec.rb
index 1c1586ef199..096282de10d 100644
--- a/spec/workers/pages/invalidate_domain_cache_worker_spec.rb
+++ b/spec/workers/pages/invalidate_domain_cache_worker_spec.rb
@@ -42,4 +42,15 @@ RSpec.describe Pages::InvalidateDomainCacheWorker do
event_class: Projects::ProjectCreatedEvent,
event_data: { project_id: 1, namespace_id: 2, root_namespace_id: 3 },
caches: { namespace: 3, project: 1 }
+
+ it_behaves_like 'clears caches with',
+ event_class: Projects::ProjectPathChangedEvent,
+ event_data: {
+ project_id: 1,
+ namespace_id: 2,
+ root_namespace_id: 3,
+ old_path: 'old_path',
+ new_path: 'new_path'
+ },
+ caches: { namespace: 3, project: 1 }
end