Fix RSpec/VerifiedDoubles cop (#25469)

This commit is contained in:
Matt Jankowski
2023-06-22 08:55:22 -04:00
committed by GitHub
parent 38433ccd0b
commit 05f9e39b32
50 changed files with 162 additions and 172 deletions

View File

@ -9,7 +9,8 @@ describe ActivityPub::ProcessingWorker do
describe '#perform' do
it 'delegates to ActivityPub::ProcessCollectionService' do
allow(ActivityPub::ProcessCollectionService).to receive(:new).and_return(double(:service, call: nil))
allow(ActivityPub::ProcessCollectionService).to receive(:new)
.and_return(instance_double(ActivityPub::ProcessCollectionService, call: nil))
subject.perform(account.id, '')
expect(ActivityPub::ProcessCollectionService).to have_received(:new)
end