Fix user email address being banned on self-deletion (#16503)
* Add tests * Fix user email address being banned on self-deletion Fixes #16498
This commit is contained in:
parent
31593d1426
commit
30ce6e395c
3 changed files with 7 additions and 3 deletions
|
@ -59,6 +59,10 @@ describe Settings::DeletesController do
|
|||
expect(user.account.reload).to be_suspended
|
||||
end
|
||||
|
||||
it 'does not create an email block' do
|
||||
expect(CanonicalEmailBlock.block?(user.email)).to be false
|
||||
end
|
||||
|
||||
context 'when suspended' do
|
||||
let(:user) { Fabricate(:user, account_attributes: { username: 'alice', suspended_at: Time.now.utc }) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue