From ecee8ccabaefc131622638c50035bf77e92b7597 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 10 Nov 2024 11:36:23 +0000 Subject: [PATCH] Fixes broken @link_to_principal@ helper test caused by r23222 (#41711, #23980). git-svn-id: https://svn.redmine.org/redmine/trunk@23227 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/helpers/application_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index a2c4ac82f..c7e79cb66 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1868,8 +1868,8 @@ class ApplicationHelperTest < Redmine::HelperTest def test_link_to_principal_should_link_to_group group = Group.find(10) - result = link_to('A Team', '/groups/10', :class => 'group') - assert_equal result, link_to_principal(group) + result = %r{A Team} + assert_match result, link_to_principal(group) end def test_link_to_principal_should_return_string_representation_for_unknown_type_principal -- 2.39.5