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