Rails4: replace hard-coded html with class at ApplicationHelperTest#test_link_to_user_should_link_to_locked_user_if_current_user_is_admin

See r12784 comment.

git-svn-id: http://svn.redmine.org/redmine/trunk@12827 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-02-06 01:30:29 +00:00
parent 54de8a19d1
commit fab81930f7
1 changed files with 2 additions and 1 deletions

View File

@ -1145,7 +1145,8 @@ RAW
with_current_user User.find(1) do
user = User.find(5)
assert user.locked?
assert_equal '<a href="/users/5" class="user locked">Dave2 Lopper2</a>', link_to_user(user)
result = link_to("Dave2 Lopper2", "/users/5", :class => "user locked")
assert_equal result, link_to_user(user)
end
end