]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_s...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:33:27 +0000 (14:33 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:33:27 +0000 (14:33 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19158 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb

index 8823f8d1e696d978657f456603ad107b53e8a4a7..669e622e0b71cd09b9469a3dd9ca84a906926ee6 100644 (file)
@@ -622,18 +622,16 @@ EXPECTED
   end
 
   def test_should_not_handle_as_preformatted_text_tags_that_starts_with_pre
-    text = <<-STR
-<pree>
-  This is some text
-</pree>
-STR
-
-    expected = <<-EXPECTED
-<p>&lt;pree&gt;<br />
-  This is some text<br />
-&lt;/pree&gt;</p>
-EXPECTED
-
+    text = <<~STR
+      <pree>
+        This is some text
+      </pree>
+    STR
+    expected = <<~EXPECTED
+      <p>&lt;pree&gt;<br />
+        This is some text<br />
+      &lt;/pree&gt;</p>
+    EXPECTED
     assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '')
   end