mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Remove double subject call in services/suspend_account_service
spec (#28213)
This commit is contained in:
parent
5517df61de
commit
be6bb1a10d
1 changed files with 5 additions and 4 deletions
|
@ -18,14 +18,15 @@ RSpec.describe SuspendAccountService, type: :service do
|
|||
account.suspend!
|
||||
end
|
||||
|
||||
it "unmerges from local followers' feeds" do
|
||||
subject
|
||||
it 'unmerges from feeds of local followers and preserves suspended flag' do
|
||||
expect { subject }
|
||||
.to_not change_suspended_flag
|
||||
expect(FeedManager.instance).to have_received(:unmerge_from_home).with(account, local_follower)
|
||||
expect(FeedManager.instance).to have_received(:unmerge_from_list).with(account, list)
|
||||
end
|
||||
|
||||
it 'does not change the “suspended” flag' do
|
||||
expect { subject }.to_not change(account, :suspended?)
|
||||
def change_suspended_flag
|
||||
change(account, :suspended?)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue