Browse Source

code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_non_closing_pre_blocks_should_be_closed

git-svn-id: http://svn.redmine.org/redmine/trunk@18807 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
68ada471f4
1 changed files with 7 additions and 9 deletions
  1. 7
    9
      test/helpers/application_helper_test.rb

+ 7
- 9
test/helpers/application_helper_test.rb View File

@@ -1130,15 +1130,13 @@ class ApplicationHelperTest < Redmine::HelperTest
end

def test_non_closing_pre_blocks_should_be_closed
raw = <<-RAW
<pre><code>
RAW

expected = <<-EXPECTED
<pre><code>
</code></pre>
EXPECTED

raw = <<~RAW
<pre><code>
RAW
expected = <<~EXPECTED
<pre><code>
</code></pre>
EXPECTED
@project = Project.find(1)
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
end

Loading…
Cancel
Save