summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:40:47 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:40:47 +0000
commit68ada471f4264dfbdfa285a2589eca6f07c37a6f (patch)
tree2958c299ce56d378d11b3d12dfb9f0636c667675
parentba370734a9e7ce6de8396dd66aec5dc96293bf2b (diff)
downloadredmine-68ada471f4264dfbdfa285a2589eca6f07c37a6f.tar.gz
redmine-68ada471f4264dfbdfa285a2589eca6f07c37a6f.zip
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_non_closing_pre_blocks_should_be_closed
git-svn-id: http://svn.redmine.org/redmine/trunk@18807 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/helpers/application_helper_test.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 6103e1d5f..fe127ff7b 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1130,15 +1130,13 @@ class ApplicationHelperTest < Redmine::HelperTest
end
def test_non_closing_pre_blocks_should_be_closed
- raw = <<-RAW
-<pre><code>
-RAW
-
- expected = <<-EXPECTED
-<pre><code>
-</code></pre>
-EXPECTED
-
+ raw = <<~RAW
+ <pre><code>
+ RAW
+ expected = <<~EXPECTED
+ <pre><code>
+ </code></pre>
+ EXPECTED
@project = Project.find(1)
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
end