DEV: Queue jobs in tests by default.

This commit is contained in:
Guo Xiang Tan
2018-05-31 14:19:11 +08:00
parent 95f9b72351
commit be28154d3b
42 changed files with 75 additions and 79 deletions

View File

@ -120,6 +120,7 @@ describe UserAnonymizer do
end
it "updates the avatar in posts" do
SiteSetting.queue_jobs = false
upload = Fabricate(:upload, user: user)
user.user_avatar = UserAvatar.new(user_id: user.id, custom_upload_id: upload.id)
user.uploaded_avatar_id = upload.id # chosen in user preferences