]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/IndentHeredoc in test/unit/lib/redmine/wiki_formatting_t...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 15:12:24 +0000 (15:12 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 15:12:24 +0000 (15:12 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19219 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/unit/lib/redmine/wiki_formatting_test.rb

index d1f7ca955781c8fa46ecb40cb67fd7aa6fe7e906..c8ea9ab15cf8398139860ec2ff38e56e090caa89 100644 (file)
@@ -171,13 +171,6 @@ Layout/IndentFirstArrayElement:
 Layout/IndentFirstHashElement:
   Enabled: false
 
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: squiggly, active_support, powerpack, unindent
-Layout/IndentHeredoc:
-  Exclude:
-    - 'test/unit/lib/redmine/wiki_formatting_test.rb'
-
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle.
 # SupportedStyles: normal, indented_internal_methods
index 1c5d4d20f531cd382d8fe816744907c47d0cf216..a208cf69a10a6ea6c11193b0e2a0871fbc077b53 100644 (file)
@@ -77,14 +77,12 @@ class Redmine::WikiFormattingTest < ActiveSupport::TestCase
   end
 
   def test_hires_images_should_not_be_recognized_as_email_addresses
-    raw = <<-DIFF
-Image: logo@2x.png
+    raw = <<~DIFF
+      Image: logo@2x.png
     DIFF
-
-    expected = <<-EXPECTED
-<p>Image: logo@2x.png</p>
+    expected = <<~EXPECTED
+      <p>Image: logo@2x.png</p>
     EXPECTED
-
     assert_equal expected.gsub(%r{[\r\n\t]}, ''), Redmine::WikiFormatting::NullFormatter::Formatter.new(raw).to_html.gsub(%r{[\r\n\t]}, '')
   end