From b6668e3ebf88db93bd0e9d9806f1830d95e35744 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 6 Feb 2014 01:30:45 +0000 Subject: [PATCH] Rails4: replace hard-coded html with class at ApplicationHelperTest#test_pre_content_should_not_parse_wiki_and_redmine_links See r12784 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@12828 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/helpers/application_helper_test.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 1b6218412..e640de0c7 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -816,9 +816,17 @@ EXPECTED RAW + result1 = link_to("CookBook documentation", + "/projects/ecookbook/wiki/CookBook_documentation", + :class => "wiki-page") + result2 = link_to('#1', + "/issues/1", + :class => Issue.find(1).css_classes, + :title => "Can't print recipes (New)") + expected = <<-EXPECTED -

CookBook documentation

-

#1

+

#{result1}

+

#{result2}

 [[CookBook documentation]]
 
-- 
2.39.5