Change lists to reflect added and removed users retroactively (#32930)
This commit is contained in:
@@ -30,7 +30,7 @@ RSpec.describe FollowRequest do
|
||||
follow_request.authorize!
|
||||
|
||||
expect(account).to have_received(:follow!).with(target_account, reblogs: true, notify: false, uri: follow_request.uri, languages: nil, bypass_limit: true)
|
||||
expect(MergeWorker).to have_received(:perform_async).with(target_account.id, account.id)
|
||||
expect(MergeWorker).to have_received(:perform_async).with(target_account.id, account.id, 'home')
|
||||
expect(follow_request).to have_received(:destroy!)
|
||||
end
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ RSpec.describe UnmuteService do
|
||||
it 'removes the account mute and sets up a merge' do
|
||||
expect { subject.call(account, target_account) }
|
||||
.to remove_account_mute
|
||||
expect(MergeWorker).to have_enqueued_sidekiq_job(target_account.id, account.id)
|
||||
expect(MergeWorker).to have_enqueued_sidekiq_job(target_account.id, account.id, 'home')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user