From b9a34afbf3c25f33828d67c63b157082c9c16090 Mon Sep 17 00:00:00 2001 From: Graeme Porteous Date: Thu, 14 Sep 2023 07:12:48 +0100 Subject: [PATCH] fixup! Add ability to ask external caches to invalidate. --- spec/jobs/notify_cache_job_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/jobs/notify_cache_job_spec.rb b/spec/jobs/notify_cache_job_spec.rb index b02aefd419..71d12ea2e8 100644 --- a/spec/jobs/notify_cache_job_spec.rb +++ b/spec/jobs/notify_cache_job_spec.rb @@ -39,6 +39,7 @@ context 'when called with a request' do let(:args) { [request] } + it 'calls out to varnish correctly' do expect(Rails.logger).to receive(:debug).exactly(55).times perform @@ -47,6 +48,7 @@ context 'when called with a comment' do let(:args) { [comment] } + it 'calls out to varnish correctly' do expect(Rails.logger).to receive(:debug).exactly(10).times perform @@ -55,6 +57,7 @@ context 'when called with an attachment' do let(:args) { [attachment] } + it 'calls out to varnish correctly' do attachment.incoming_message = im expect(Rails.logger).to receive(:debug).exactly(5).times @@ -64,6 +67,7 @@ context 'when called with a body' do let(:args) { [body] } + it 'calls out to varnish correctly' do attachment.incoming_message = im expect(Rails.logger).to receive(:debug).exactly(15).times