Revert "Merge pull request #5576 from tchak/soft-delete-users"
This reverts commitbf0d3914ce
, reversing changes made to503527459e
.
This commit is contained in:
parent
e0834bf4f5
commit
0307beecd6
5 changed files with 5 additions and 67 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue