summaryrefslogtreecommitdiff
path: root/spec/support/helpers/notification_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/notification_helpers.rb')
-rw-r--r--spec/support/helpers/notification_helpers.rb4
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)