From: Toshi MARUYAMA Date: Thu, 6 Feb 2014 01:30:45 +0000 (+0000) Subject: Rails4: replace hard-coded html with class at ApplicationHelperTest#test_pre_content_... X-Git-Tag: 2.5.0~72 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b6668e3ebf88db93bd0e9d9806f1830d95e35744;p=redmine.git 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 --- 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]]