mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
FEATURE: Add welcome message for admins. (#8293)
This commit is contained in:
parent
ee5799805c
commit
671f303b53
6 changed files with 21 additions and 9 deletions
|
@ -33,6 +33,7 @@ describe AdminConfirmation do
|
|||
expect(ac.performed_by).to eq(admin)
|
||||
expect(ac.target_user).to eq(user)
|
||||
expect(ac.token).to eq(@token)
|
||||
Jobs.expects(:enqueue).with(:send_system_message, user_id: user.id, message_type: 'welcome_staff', message_options: { role: :admin })
|
||||
ac.email_confirmed!
|
||||
|
||||
user.reload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue