summaryrefslogtreecommitdiffstats
path: root/test/helpers/application_helper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/helpers/application_helper_test.rb')
-rw-r--r--test/helpers/application_helper_test.rb30
1 files changed, 14 insertions, 16 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 876ad72cc..e81b38025 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1078,24 +1078,22 @@ class ApplicationHelperTest < Redmine::HelperTest
end
def test_pre_tags
- raw = <<-RAW
-Before
-
-<pre>
-<prepared-statement-cache-size>32</prepared-statement-cache-size>
-</pre>
-
-After
-RAW
+ raw = <<~RAW
+ Before
- expected = <<-EXPECTED
-<p>Before</p>
-<pre>
-&lt;prepared-statement-cache-size&gt;32&lt;/prepared-statement-cache-size&gt;
-</pre>
-<p>After</p>
-EXPECTED
+ <pre>
+ <prepared-statement-cache-size>32</prepared-statement-cache-size>
+ </pre>
+ After
+ RAW
+ expected = <<~EXPECTED
+ <p>Before</p>
+ <pre>
+ &lt;prepared-statement-cache-size&gt;32&lt;/prepared-statement-cache-size&gt;
+ </pre>
+ <p>After</p>
+ EXPECTED
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
end