summaryrefslogtreecommitdiffstats
path: root/test/helpers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:39:14 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:39:14 +0000
commitf404a13a20db98a949cc78955da534b115221f2b (patch)
tree5ef9a8409444297b1276b13c3eeb183d762e10c1 /test/helpers
parentfb77bc49ae7e9129e8c6e376c92f8e2ed368b1d4 (diff)
downloadredmine-f404a13a20db98a949cc78955da534b115221f2b.tar.gz
redmine-f404a13a20db98a949cc78955da534b115221f2b.zip
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
Diffstat (limited to 'test/helpers')
-rw-r--r--test/helpers/application_helper_test.rb27
1 files 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@
-<pre>
-some code
-
-h2. heading inside pre
+ <pre>
+ some code
-<h2>html heading inside pre</h2>
-</pre>
+ h2. heading inside pre
-h2. Subtitle after pre tag
-RAW
+ <h2>html heading inside pre</h2>
+ </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", "")