From 9f3cc6daa53df70d5310649937e7f3c3becb26f6 Mon Sep 17 00:00:00 2001 From: Pablo Brasero Date: Thu, 9 Jul 2026 13:50:05 +0100 Subject: [PATCH] Test with a subject closer to reality I missed these two the first time around. --- test/controllers/notifications/note_comment_view_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/controllers/notifications/note_comment_view_test.rb b/test/controllers/notifications/note_comment_view_test.rb index 7cb8865ce..06c466d2e 100644 --- a/test/controllers/notifications/note_comment_view_test.rb +++ b/test/controllers/notifications/note_comment_view_test.rb @@ -55,7 +55,7 @@ module Notifications :event => "closed", :body => "" ) - notification = Struct.new(:record).new(note_comment) + notification = build_stubbed(:notification, :record => note_comment) notification_wrapper = UserNotifications::NoteCommentNotification.new(notification) render "notifications/note_comment", :notification => notification_wrapper @@ -78,7 +78,7 @@ module Notifications :event => "reopened", :body => "" ) - notification = Struct.new(:record).new(note_comment) + notification = build_stubbed(:notification, :record => note_comment) notification_wrapper = UserNotifications::NoteCommentNotification.new(notification) render "notifications/note_comment", :notification => notification_wrapper -- 2.47.3