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,7 @@ describe RegenerationWorker do
let(:account) { Fabricate(:account) }
it 'calls the precompute feed service for the account' do
service = double(call: nil)
service = instance_double(PrecomputeFeedService, call: nil)
allow(PrecomputeFeedService).to receive(:new).and_return(service)
result = subject.perform(account.id)