From 4aef1bf4912b5be875d90829a856264e8b50a546 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 31 Aug 2021 02:17:34 +0000 Subject: [PATCH] Fix that test_link_to_principal_should_link_to_user does not actually test anything (#12795). git-svn-id: http://svn.redmine.org/redmine/trunk@21203 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/helpers/application_helper_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 06dd04b6a..6caafcb89 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1712,7 +1712,8 @@ class ApplicationHelperTest < Redmine::HelperTest def test_link_to_principal_should_link_to_user user = User.find(2) - assert_equal link_to_user(user), link_to_principal(user) + result = link_to('John Smith', '/users/2', :class => 'user active') + assert_equal result, link_to_principal(user) end def test_link_to_principal_should_link_to_group -- 2.39.5