From f8921d3dedc4f1246c663163d80a2bbcc51ca1cf Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Fri, 4 Jan 2019 14:14:14 +1300 Subject: [PATCH] Update reply notifications --- app/helpers/notifications_helper.rb | 2 +- spec/helpers/notifications_helper_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index bb3695851..36160f79b 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -5,7 +5,7 @@ module NotificationsHelper new_comment_url(post_id: notification.post.id) else # by default, reply link sends a PM in return - reply_notification_url(notification) + reply_notifications_url(notification) end end end diff --git a/spec/helpers/notifications_helper_spec.rb b/spec/helpers/notifications_helper_spec.rb index a00dabff3..39e212980 100644 --- a/spec/helpers/notifications_helper_spec.rb +++ b/spec/helpers/notifications_helper_spec.rb @@ -8,7 +8,7 @@ describe NotificationsHelper do notification = FactoryBot.create(:notification, recipient_id: member.id, post_id: nil) link = helper.reply_link(notification) link.should_not be_nil - link.should eq reply_notification_url(notification) + link.should eq reply_notifications_url(notification) end it "replies to post comments with post comments" do