Revert "Merge pull request #5576 from tchak/soft-delete-users"

This reverts commit bf0d3914ce, reversing
changes made to 503527459e.
This commit is contained in:
clemkeirua 2020-09-17 15:39:16 +02:00
parent e0834bf4f5
commit 0307beecd6
5 changed files with 5 additions and 67 deletions

View file

@ -293,16 +293,4 @@ describe User, type: :model do
end
end
end
describe '#discard_and_anonymize!' do
let(:user) { create(:user) }
before { user.discard_and_anonymize!('HS1234') }
it 'should discard user and make it anonymous' do
expect(user.discarded?).to be_truthy
expect(user.email).to end_with '@anonymous.org'
expect(user.discard_reason).to eq('HS1234')
end
end
end