mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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
This commit is contained in:
parent
141b07d0c7
commit
80856bf517
@ -171,13 +171,6 @@ Layout/IndentFirstArrayElement:
|
|||||||
Layout/IndentFirstHashElement:
|
Layout/IndentFirstHashElement:
|
||||||
Enabled: false
|
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.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: normal, indented_internal_methods
|
# SupportedStyles: normal, indented_internal_methods
|
||||||
|
|||||||
@ -77,14 +77,12 @@ class Redmine::WikiFormattingTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_hires_images_should_not_be_recognized_as_email_addresses
|
def test_hires_images_should_not_be_recognized_as_email_addresses
|
||||||
raw = <<-DIFF
|
raw = <<~DIFF
|
||||||
Image: logo@2x.png
|
Image: logo@2x.png
|
||||||
DIFF
|
DIFF
|
||||||
|
expected = <<~EXPECTED
|
||||||
expected = <<-EXPECTED
|
<p>Image: logo@2x.png</p>
|
||||||
<p>Image: logo@2x.png</p>
|
|
||||||
EXPECTED
|
EXPECTED
|
||||||
|
|
||||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), Redmine::WikiFormatting::NullFormatter::Formatter.new(raw).to_html.gsub(%r{[\r\n\t]}, '')
|
assert_equal expected.gsub(%r{[\r\n\t]}, ''), Redmine::WikiFormatting::NullFormatter::Formatter.new(raw).to_html.gsub(%r{[\r\n\t]}, '')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user