mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
Fix RSpec/VerifiedDoubles cop (#25469)
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user