|
|
@ -58,7 +58,7 @@ describe RelationshipsController do |
|
|
|
end |
|
|
|
|
|
|
|
context 'when select parameter is provided' do |
|
|
|
subject { patch :update, params: { form_account_batch: { account_ids: [poopfeast.id] }, block_domains: '' } } |
|
|
|
subject { patch :update, params: { form_account_batch: { account_ids: [poopfeast.id] }, remove_domains_from_followers: '' } } |
|
|
|
|
|
|
|
it 'soft-blocks followers from selected domains' do |
|
|
|
poopfeast.follow!(user.account) |
|
|
@ -69,6 +69,15 @@ describe RelationshipsController do |
|
|
|
expect(poopfeast.following?(user.account)).to be false |
|
|
|
end |
|
|
|
|
|
|
|
it 'does not unfollow users from selected domains' do |
|
|
|
user.account.follow!(poopfeast) |
|
|
|
|
|
|
|
sign_in user, scope: :user |
|
|
|
subject |
|
|
|
|
|
|
|
expect(user.account.following?(poopfeast)).to be true |
|
|
|
end |
|
|
|
|
|
|
|
include_examples 'authenticate user' |
|
|
|
include_examples 'redirects back to followers page' |
|
|
|
end |
|
|
|