diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 18:18:33 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 18:18:33 +0000 |
commit | f64a639bcfa1fc2bc89ca7db268f594306edfd7c (patch) | |
tree | a2c3c2ebcc3b45e596949db485d6ed18ffaacfa1 /spec/support/helpers/notification_helpers.rb | |
parent | bfbc3e0d6583ea1a91f627528bedc3d65ba4b10f (diff) | |
download | gitlab-ce-f64a639bcfa1fc2bc89ca7db268f594306edfd7c.tar.gz |
Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40
Diffstat (limited to 'spec/support/helpers/notification_helpers.rb')
-rw-r--r-- | spec/support/helpers/notification_helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/helpers/notification_helpers.rb b/spec/support/helpers/notification_helpers.rb index aee57b452fe..6066f4ec3bf 100644 --- a/spec/support/helpers/notification_helpers.rb +++ b/spec/support/helpers/notification_helpers.rb @@ -3,10 +3,10 @@ module NotificationHelpers extend self - def send_notifications(*new_mentions) + def send_notifications(*new_mentions, current_user: @u_disabled) mentionable.description = new_mentions.map(&:to_reference).join(' ') - notification.send(notification_method, mentionable, new_mentions, @u_disabled) + notification.send(notification_method, mentionable, new_mentions, current_user) end def create_global_setting_for(user, level) |