Rails4: replace hard-coded html with class at ApplicationHelperTest#test_link_to_user
See r12784 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@12826 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
789523db5f
commit
54de8a19d1
|
@ -1129,7 +1129,8 @@ RAW
|
|||
|
||||
def test_link_to_user
|
||||
user = User.find(2)
|
||||
assert_equal '<a href="/users/2" class="user active">John Smith</a>', link_to_user(user)
|
||||
result = link_to("John Smith", "/users/2", :class => "user active")
|
||||
assert_equal result, link_to_user(user)
|
||||
end
|
||||
|
||||
def test_link_to_user_should_not_link_to_locked_user
|
||||
|
|
Loading…
Reference in New Issue