Defect #41721 » 0002-Fixed-broken-link_to_principal-helper-test.patch
| 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
|
||
- « Previous
- 1
- 2
- 3
- 4
- Next »