FIX: Transaction in UserAnonymizer prevented avatar from updating

This commit is contained in:
Gerhard Schlager
2018-05-14 17:13:25 +02:00
parent 9947c38e1c
commit 2e1b5bc8d3
4 changed files with 10 additions and 8 deletions

View File

@@ -1009,7 +1009,10 @@ describe UserMerger do
it "updates the username" do
Jobs::UpdateUsername.any_instance
.expects(:execute)
.with(user_id: source_user.id, old_username: 'alice1', new_username: 'alice')
.with(user_id: source_user.id,
old_username: 'alice1',
new_username: 'alice',
avatar_template: target_user.avatar_template)
.once
merge_users!