diff options
author | Go MAEDA <maeda@farend.jp> | 2022-10-26 13:14:08 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-10-26 13:14:08 +0000 |
commit | 47b17044d2c24eb69f6e2038d3332ffa500ca4e4 (patch) | |
tree | 805598d6095ca34222286c8a82373f7dbee6a147 /test/helpers/application_helper_test.rb | |
parent | 4cbb07ba437418a2a40d64a63f8949701ab38a93 (diff) | |
download | redmine-47b17044d2c24eb69f6e2038d3332ffa500ca4e4.tar.gz redmine-47b17044d2c24eb69f6e2038d3332ffa500ca4e4.zip |
Fix RuboCop offense Style/RedundantStringEscape (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@21920 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers/application_helper_test.rb')
-rw-r--r-- | test/helpers/application_helper_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 64ef8a2de..a5c533a4f 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1411,7 +1411,7 @@ class ApplicationHelperTest < Redmine::HelperTest </code></pre> RAW expected = <<~EXPECTED - <pre><code class="ECMA_script syntaxhl" data-language=\"ECMA_script\"><span class="cm">/* Hello */</span><span class="nb">document</span><span class="p">.</span><span class="nx">write</span><span class="p">(</span><span class="dl">"</span><span class="s2">Hello World!</span><span class="dl">"</span><span class="p">);</span></code></pre> + <pre><code class="ECMA_script syntaxhl" data-language="ECMA_script"><span class="cm">/* Hello */</span><span class="nb">document</span><span class="p">.</span><span class="nx">write</span><span class="p">(</span><span class="dl">"</span><span class="s2">Hello World!</span><span class="dl">"</span><span class="p">);</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]}, '') @@ -1425,7 +1425,7 @@ class ApplicationHelperTest < Redmine::HelperTest </code></pre> RAW expected = <<~EXPECTED - <pre><code class=\"ruby syntaxhl\" data-language=\"ruby\"><span class=\"n\">x</span> <span class=\"o\">=</span> <span class=\"n\">a</span> <span class=\"o\">&</span> <span class=\"n\">b</span></code></pre> + <pre><code class="ruby syntaxhl" data-language="ruby"><span class="n">x</span> <span class="o">=</span> <span class="n">a</span> <span class="o">&</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]}, '') @@ -2214,7 +2214,7 @@ class ApplicationHelperTest < Redmine::HelperTest "/projects/ecookbook/wiki/A_%22quoted%22_name", :class => "wiki-page new"), '[[le français, c\'est super]]' => - link_to("le français, c\'est super", + link_to("le français, c'est super", "/projects/ecookbook/wiki/Le_fran%C3%A7ais_c'est_super", :class => "wiki-page new"), '[[broken < less]]' => |