@@ -1129,7 +1129,8 RAW | |||
|
1129 | 1129 | |
|
1130 | 1130 | def test_link_to_user |
|
1131 | 1131 | user = User.find(2) |
|
1132 | assert_equal '<a href="/users/2" class="user active">John Smith</a>', link_to_user(user) | |
|
1132 | result = link_to("John Smith", "/users/2", :class => "user active") | |
|
1133 | assert_equal result, link_to_user(user) | |
|
1133 | 1134 | end |
|
1134 | 1135 | |
|
1135 | 1136 | def test_link_to_user_should_not_link_to_locked_user |
General Comments 0
You need to be logged in to leave comments.
Login now