From 9e61fc978b9c42a9e9fe5e6a166e3e7f79058d4e Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Fri, 23 Jan 2026 19:28:40 +0000 Subject: [PATCH] Fix failing tests (#43643). git-svn-id: https://svn.redmine.org/redmine/trunk@24362 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/helpers/application_helper_test.rb | 7 +++++-- test/unit/lib/redmine/wiki_formatting/macros_test.rb | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index f8488c220..059aaca7d 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -22,6 +22,7 @@ require_relative '../test_helper' class ApplicationHelperTest < Redmine::HelperTest include ERB::Util include AvatarsHelper + include IconsHelper def setup super @@ -2431,8 +2432,10 @@ class ApplicationHelperTest < Redmine::HelperTest end def pre_wrapper(text) - '
' + - '' + + icon = sprite_icon('copy-pre-content', size: 18) + button_copy = l(:button_copy) + '
' + + icon + '' + text + '
' end diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb index a115f2ede..57c6417ef 100644 --- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb @@ -23,6 +23,7 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest include ActionView::Helpers::TextHelper include ActionView::Helpers::SanitizeHelper include ERB::Util + include IconsHelper extend ActionView::Helpers::SanitizeHelper::ClassMethods def setup @@ -627,8 +628,10 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest end def pre_wrapper(text) - '
' + - '' + + icon = sprite_icon('copy-pre-content', size: 18) + button_copy = l(:button_copy) + '
' + + icon + '' + text + '
' end