summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-11-10 11:36:23 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-11-10 11:36:23 +0000
commitecee8ccabaefc131622638c50035bf77e92b7597 (patch)
tree503c023bd2fa167a02ec74a96568e206b061cbbe
parent624f9bf3d107488c67624de636171eeff10886ab (diff)
downloadredmine-ecee8ccabaefc131622638c50035bf77e92b7597.tar.gz
redmine-ecee8ccabaefc131622638c50035bf77e92b7597.zip
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
-rw-r--r--test/helpers/application_helper_test.rb4
1 files 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 class="group" href="/groups/10"><svg class="s18 icon-svg" aria-hidden="true"><use href="/assets/icons-\w+.svg#icon--group"></use></svg>A Team</a>}
+ assert_match result, link_to_principal(group)
end
def test_link_to_principal_should_return_string_representation_for_unknown_type_principal