From 54de8a19d10d6eefeacf36e0d0c8bccff5b42941 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 6 Feb 2014 01:30:12 +0000 Subject: [PATCH] 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 --- 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 d33734d69..504981938 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -1129,7 +1129,8 @@ RAW def test_link_to_user user = User.find(2) - assert_equal 'John Smith', 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