mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
FEATURE: Add welcome message for admins. (#8293)
This commit is contained in:
@ -426,6 +426,7 @@ RSpec.describe Admin::UsersController do
|
||||
end
|
||||
|
||||
it 'updates the moderator flag' do
|
||||
Jobs.expects(:enqueue).with(:send_system_message, user_id: another_user.id, message_type: 'welcome_staff', message_options: { role: :moderator })
|
||||
put "/admin/users/#{another_user.id}/grant_moderation.json"
|
||||
expect(response.status).to eq(200)
|
||||
another_user.reload
|
||||
|
Reference in New Issue
Block a user