From 1ee1227e68906f35f9379f32221852cce1f4e527 Mon Sep 17 00:00:00 2001
From: Katsuya Hidaka <hidakatsuya@gmail.com>
Date: Sat, 9 Nov 2024 20:09:37 +0900
Subject: [PATCH 2/2] Fixed broken link_to_principal helper test

---
 test/helpers/application_helper_test.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index a2c4ac82f..605f4bf82 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1868,8 +1868,7 @@ 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)
+    assert_select_in link_to_principal(group), 'a.group[href=?]', '/groups/10', text: 'A Team'
   end
 
   def test_link_to_principal_should_return_string_representation_for_unknown_type_principal
-- 
2.45.2

