Fix RSpec/VerifiedDoubles cop (#25469)
This commit is contained in:
1 parent
38433ccd0b
commit
05f9e39b32
50 files changed
+162
-172
No files matched your search
@@ -213,7 +213,7 @@ RSpec.describe Admin::DomainBlocksController do
|
||||
|
||||
describe 'DELETE #destroy' do
|
||||
it 'unblocks the domain' do
|
||||
service = double(call: true)
|
||||
service = instance_double(UnblockDomainService, call: true)
|
||||
allow(UnblockDomainService).to receive(:new).and_return(service)
|
||||
domain_block = Fabricate(:domain_block)
|
||||
delete :destroy, params: { id: domain_block.id }
|
||||
|
||||
Reference in new issue
Block a user