diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index e81b38025..6103e1d5f 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1098,18 +1098,17 @@ class ApplicationHelperTest < Redmine::HelperTest end def test_pre_content_should_not_parse_wiki_and_redmine_links - raw = <<-RAW -[[CookBook documentation]] + raw = <<~RAW + [[CookBook documentation]] -#1 + #1 -
-[[CookBook documentation]]
-
-#1
-
-RAW +
+      [[CookBook documentation]]
 
+      #1
+      
+ RAW result1 = link_to("CookBook documentation", "/projects/ecookbook/wiki/CookBook_documentation", :class => "wiki-page") @@ -1117,17 +1116,15 @@ RAW "/issues/1", :class => Issue.find(1).css_classes, :title => "Bug: Cannot print recipes (New)") + expected = <<~EXPECTED +

#{result1}

+

#{result2}

+
+      [[CookBook documentation]]
 
-    expected = <<-EXPECTED
-

#{result1}

-

#{result2}

-
-[[CookBook documentation]]
-
-#1
-
-EXPECTED - + #1 +
+ EXPECTED @project = Project.find(1) assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '') end