From fab81930f7861b11969c35ade4cb8dd04c51e7c0 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 6 Feb 2014 01:30:29 +0000 Subject: [PATCH] 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 --- test/unit/helpers/application_helper_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 504981938..1b6218412 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -1145,7 +1145,8 @@ RAW with_current_user User.find(1) do user = User.find(5) assert user.locked? - assert_equal 'Dave2 Lopper2', link_to_user(user) + result = link_to("Dave2 Lopper2", "/users/5", :class => "user locked") + assert_equal result, link_to_user(user) end end -- 2.39.5