Project

General

Profile

Defect #41721 » 0002-Fixed-broken-link_to_principal-helper-test.patch

Katsuya HIDAKA, 2024-11-09 16:18

View differences:

test/helpers/application_helper_test.rb
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
(4-4/4)