From 1961acdb87b98fc124725295af28795b11e218de Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 22 Oct 2019 11:40:58 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_syntax_highlight git-svn-id: http://svn.redmine.org/redmine/trunk@18808 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/helpers/application_helper_test.rb | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index fe127ff7b..be1c60303 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1148,17 +1148,15 @@ class ApplicationHelperTest < Redmine::HelperTest end def test_syntax_highlight - raw = <<-RAW -

-/* Hello */
-document.write("Hello World!");
-
-RAW - - expected = <<-EXPECTED -
/* Hello */document.write("Hello World!");
-EXPECTED - + raw = <<~RAW +

+      /* Hello */
+      document.write("Hello World!");
+      
+ RAW + expected = <<~EXPECTED +
/* Hello */document.write("Hello World!");
+ EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '') end -- 2.39.5