summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:40:12 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:40:12 +0000
commit211534fccafbe2140ea8641d86c9996fa273981c (patch)
tree97f9a832ab239074f3ce1a0348962cb566e8ba70 /test
parentb2cd8771f33a0d0354c50b9b4ddedf254195f783 (diff)
downloadredmine-211534fccafbe2140ea8641d86c9996fa273981c.tar.gz
redmine-211534fccafbe2140ea8641d86c9996fa273981c.zip
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_syntax_highlight_ampersand_in_textile
git-svn-id: http://svn.redmine.org/redmine/trunk@18804 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/helpers/application_helper_test.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 5f9c718ef..876ad72cc 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1170,16 +1170,14 @@ EXPECTED
end
def test_syntax_highlight_ampersand_in_textile
- raw = <<-RAW
-<pre><code class="ruby">
-x = a & b
-</code></pre>
-RAW
-
- expected = <<-EXPECTED
-<pre><code class=\"ruby syntaxhl\"><span class=\"n\">x</span> <span class=\"o\">=</span> <span class=\"n\">a</span> <span class=\"o\">&amp;</span> <span class=\"n\">b</span></code></pre>
-EXPECTED
-
+ raw = <<~RAW
+ <pre><code class="ruby">
+ x = a & b
+ </code></pre>
+ RAW
+ expected = <<~EXPECTED
+ <pre><code class=\"ruby syntaxhl\"><span class=\"n\">x</span> <span class=\"o\">=</span> <span class=\"n\">a</span> <span class=\"o\">&amp;</span> <span class=\"n\">b</span></code></pre>
+ EXPECTED
with_settings :text_formatting => 'textile' do
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
end