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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 162 additions and 172 deletions

View file

@ -7,7 +7,7 @@ describe Admin::DomainPurgeWorker do
describe 'perform' do
it 'calls domain purge service for relevant domain block' do
service = double(call: nil)
service = instance_double(PurgeDomainService, call: nil)
allow(PurgeDomainService).to receive(:new).and_return(service)
result = subject.perform('example.com')