From: Marius Balteanu Date: Sun, 10 Nov 2024 11:36:23 +0000 (+0000) Subject: Fixes broken @link_to_principal@ helper test caused by r23222 (#41711, #23980). X-Git-Tag: 6.0.0~6^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ecee8ccabaefc131622638c50035bf77e92b7597;p=redmine.git 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 --- 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