From b6668e3ebf88db93bd0e9d9806f1830d95e35744 2014-02-06 01:30:45 From: Toshi MARUYAMA Date: 2014-02-06 01:30:45 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 --- diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 1b62184..e640de0 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]]