summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/helpers/application_helper_test.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 6103e1d5f..fe127ff7b 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -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