Fix RSpec/VerifiedDoubles
cop (#25469)
This commit is contained in:
parent
38433ccd0b
commit
05f9e39b32
50 changed files with 162 additions and 172 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue