DEV: anonymizing should not delete uploads

We have another job for upload deletion cause uploads may be shared
This commit is contained in:
Sam 2018-12-13 16:42:52 +11:00
parent 7ee9a6a7ec
commit 59c56bd20f
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ describe UserAnonymizer do
user.user_avatar = UserAvatar.new(user_id: user.id, custom_upload_id: upload.id)
user.uploaded_avatar_id = upload.id # chosen in user preferences
user.save!
expect { make_anonymous }.to change { Upload.count }.by(-1)
make_anonymous
user.reload
expect(user.user_avatar).to eq(nil)
expect(user.uploaded_avatar_id).to eq(nil)