Defect #41721 » 0002-Fixed-broken-link_to_principal-helper-test.patch
| test/helpers/application_helper_test.rb | ||
|---|---|---|
| 1868 | 1868 | |
| 1869 | 1869 |
def test_link_to_principal_should_link_to_group |
| 1870 | 1870 |
group = Group.find(10) |
| 1871 |
result = link_to('A Team', '/groups/10', :class => 'group')
|
|
| 1872 |
assert_equal result, link_to_principal(group) |
|
| 1871 |
assert_select_in link_to_principal(group), 'a.group[href=?]', '/groups/10', text: 'A Team' |
|
| 1873 | 1872 |
end |
| 1874 | 1873 | |
| 1875 | 1874 |
def test_link_to_principal_should_return_string_representation_for_unknown_type_principal |
- « Previous
- 1
- 2
- 3
- 4
- Next »