From 80856bf5175b6a8e05e92b2dc17520ee132aadf5 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 23 Nov 2019 15:12:24 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/IndentHeredoc in test/unit/lib/redmine/wiki_formatting_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19219 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 7 ------- test/unit/lib/redmine/wiki_formatting_test.rb | 10 ++++------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index d1f7ca955..c8ea9ab15 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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 diff --git a/test/unit/lib/redmine/wiki_formatting_test.rb b/test/unit/lib/redmine/wiki_formatting_test.rb index 1c5d4d20f..a208cf69a 100644 --- a/test/unit/lib/redmine/wiki_formatting_test.rb +++ b/test/unit/lib/redmine/wiki_formatting_test.rb @@ -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 -

Image: logo@2x.png

+ expected = <<~EXPECTED +

Image: logo@2x.png

EXPECTED - assert_equal expected.gsub(%r{[\r\n\t]}, ''), Redmine::WikiFormatting::NullFormatter::Formatter.new(raw).to_html.gsub(%r{[\r\n\t]}, '') end -- 2.39.5