From f404a13a20db98a949cc78955da534b115221f2b Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 22 Oct 2019 11:39:14 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_section_edit_links git-svn-id: http://svn.redmine.org/redmine/trunk@18799 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/helpers/application_helper_test.rb | 27 ++++++++++++------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index fe95872b8..7aae460e0 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1384,28 +1384,27 @@ RAW end def test_section_edit_links - raw = <<-RAW -h1. Title + raw = <<~RAW + h1. Title -Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero. -h2. Subtitle with a [[Wiki]] link + h2. Subtitle with a [[Wiki]] link -h2. Subtitle with *some* _modifiers_ + h2. Subtitle with *some* _modifiers_ -h2. Subtitle with @inline code@ + h2. Subtitle with @inline code@ -
-some code
-
-h2. heading inside pre
+      
+      some code
 
-

html heading inside pre

-
+ h2. heading inside pre -h2. Subtitle after pre tag -RAW +

html heading inside pre

+
+ h2. Subtitle after pre tag + RAW @project = Project.find(1) set_language_if_valid 'en' result = textilizable(raw, :edit_section_links => {:controller => 'wiki', :action => 'edit', :project_id => '1', :id => 'Test'}).gsub("\n", "") -- 2.39.5