From 8bece467f821e587208284188d8c517118cd87b0 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 17 Apr 2024 13:13:52 +0200 Subject: [PATCH] Change `have_enqueued_sidekiq_job` usage to always make argument expectations explicit (#29974) --- spec/services/create_featured_tag_service_spec.rb | 2 +- spec/services/unmute_service_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/services/create_featured_tag_service_spec.rb b/spec/services/create_featured_tag_service_spec.rb index 29a7c5b309..f057bc8538 100644 --- a/spec/services/create_featured_tag_service_spec.rb +++ b/spec/services/create_featured_tag_service_spec.rb @@ -24,7 +24,7 @@ RSpec.describe CreateFeaturedTagService do expect { subject.call(account, tag) } .to change(FeaturedTag, :count).by(1) expect(ActivityPub::AccountRawDistributionWorker) - .to_not have_enqueued_sidekiq_job + .to_not have_enqueued_sidekiq_job(any_args) end end end diff --git a/spec/services/unmute_service_spec.rb b/spec/services/unmute_service_spec.rb index 00135b5ac0..92c7a70d65 100644 --- a/spec/services/unmute_service_spec.rb +++ b/spec/services/unmute_service_spec.rb @@ -24,7 +24,7 @@ RSpec.describe UnmuteService do it 'removes the account mute and does not create a merge' do expect { subject.call(account, target_account) } .to remove_account_mute - expect(MergeWorker).to_not have_enqueued_sidekiq_job + expect(MergeWorker).to_not have_enqueued_sidekiq_job(any_args) end end @@ -39,7 +39,7 @@ RSpec.describe UnmuteService do it 'does nothing and returns' do expect { subject.call(account, target_account) } .to_not(change { account.reload.muting?(target_account) }) - expect(MergeWorker).to_not have_enqueued_sidekiq_job + expect(MergeWorker).to_not have_enqueued_sidekiq_job(any_args) end end end