]> source.dussan.org Git - redmine.git/commitdiff
Fixes broken @link_to_principal@ helper test caused by r23222 (#41711, #23980).
authorMarius Balteanu <marius.balteanu@zitec.com>
Sun, 10 Nov 2024 11:36:23 +0000 (11:36 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sun, 10 Nov 2024 11:36:23 +0000 (11:36 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@23227 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/helpers/application_helper_test.rb

index a2c4ac82f36cc78155ee08c1e23e68c6451e23ad..c7e79cb663173be0ab4db9bd694176d96e40953d 100644 (file)
@@ -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