From 936052f9f60f781b18c6cd94d6d070c855398414 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 5 Feb 2014 08:56:19 +0000 Subject: [PATCH] Rails4: replace hard-coded html with class at ApplicationHelperTest#test_link_to_project See r12784 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@12822 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 91ede7301..4f5a06390 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -1161,7 +1161,8 @@ RAW link_to_project(project, :action => 'settings') assert_equal %(eCookbook), link_to_project(project, {:only_path => false, :jump => 'blah'}) - assert_equal %(eCookbook), + result = link_to("eCookbook", "/projects/ecookbook/settings", :class => "project") + assert_equal result, link_to_project(project, {:action => 'settings'}, :class => "project") end -- 2.39.5