0
0
Fork 0

Remove severed relationship notifications for single account suspensions (#29700)

This commit is contained in:
Claire 2024-03-21 22:53:24 +01:00 committed by GitHub
parent 70a8fcf07d
commit 05eda8d193
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 23 deletions

View file

@ -85,14 +85,10 @@ RSpec.describe SuspendAccountService, :sidekiq_inline do
account.follow!(local_followee)
end
it 'sends a Reject Follow activity, and records severed relationships', :aggregate_failures do
it 'sends a Reject Follow activity', :aggregate_failures do
subject
expect(a_request(:post, account.inbox_url).with { |req| match_reject_follow_request(req, account, local_followee) }).to have_been_made.once
severed_relationships = local_followee.severed_relationships.to_a
expect(severed_relationships.count).to eq 1
expect(severed_relationships.map { |rel| [rel.account, rel.target_account] }).to contain_exactly([account, local_followee])
end
end
end