Fix RSpec/AnyInstance cop (#27810)
This commit is contained in:
1 parent
d562fb8459
commit
b2c5b20ef2
14 files changed
+70
-60
No files matched your search
@@ -11,7 +11,8 @@ describe ActivityPub::DeliveryWorker do
|
||||
let(:payload) { 'test' }
|
||||
|
||||
before do
|
||||
allow_any_instance_of(Account).to receive(:remote_followers_hash).with('https://example.com/api').and_return('somehash')
|
||||
allow(sender).to receive(:remote_followers_hash).with('https://example.com/api').and_return('somehash')
|
||||
allow(Account).to receive(:find).with(sender.id).and_return(sender)
|
||||
end
|
||||
|
||||
describe 'perform' do
|
||||
|
||||
Reference in new issue
Block a user