Skip to content

Commit

Permalink
fixup! Add ability to ask external caches to invalidate.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Sep 14, 2023
1 parent b3804c7 commit b9a34af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/jobs/notify_cache_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b9a34af

Please sign in to comment.