diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-21 00:10:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-21 00:10:19 +0300 |
commit | f1f255857dd72d1aa234ea4874eadf6f4f1758ba (patch) | |
tree | ecfbd4ccbf1d2d625d9433ded2416079c6ca1116 /spec/workers | |
parent | 61b943c213065636abd4ebb34a3fba5412aa047f (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.rb | 11 |
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 |