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
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