diff options
Diffstat (limited to 'spec/workers/pages/invalidate_domain_cache_worker_spec.rb')
-rw-r--r-- | spec/workers/pages/invalidate_domain_cache_worker_spec.rb | 10 |
1 files changed, 10 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 75d7c9f82b4..9272e26a34f 100644 --- a/spec/workers/pages/invalidate_domain_cache_worker_spec.rb +++ b/spec/workers/pages/invalidate_domain_cache_worker_spec.rb @@ -116,6 +116,16 @@ RSpec.describe Pages::InvalidateDomainCacheWorker do { type: :namespace, id: 2 } ] + it_behaves_like 'clears caches with', + event_class: Groups::GroupDeletedEvent, + event_data: { + group_id: 1, + root_namespace_id: 3 + }, + caches: [ + { type: :namespace, id: 3 } + ] + context 'when namespace based cache keys are duplicated' do # de-dups namespace cache keys it_behaves_like 'clears caches with', |