diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-30 15:49:06 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-30 15:49:06 +0000 |
commit | 8f542b20f435c80f39a6122ae9ca217c55ebbac2 (patch) | |
tree | 674571e43eb48eb40d0a90559b086e4c3dda86d6 /test/helpers/application_helper_test.rb | |
parent | cb7d01219bb5acbecdd94e7ff107de94b3c9b853 (diff) | |
download | redmine-8f542b20f435c80f39a6122ae9ca217c55ebbac2.tar.gz redmine-8f542b20f435c80f39a6122ae9ca217c55ebbac2.zip |
shorten long line of ApplicationHelperTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20526 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers/application_helper_test.rb')
-rw-r--r-- | test/helpers/application_helper_test.rb | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index ec196771e..42af59566 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1523,18 +1523,30 @@ class ApplicationHelperTest < Redmine::HelperTest ).delete("\n") # heading that contains inline code assert_match( - Regexp.new('<div class="contextual heading-2" title="Edit this section" id="section-4">' + - '<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=4">Edit this section</a></div>' + - '<a name="Subtitle-with-inline-code"></a>' + - '<h2 >Subtitle with <code>inline code</code><a href="#Subtitle-with-inline-code" class="wiki-anchor">¶</a></h2>'), - result) + Regexp.new( + '<div class="contextual heading-2" title="Edit this section" id="section-4">' \ + '<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=4">' \ + 'Edit this section' \ + '</a></div>' \ + '<a name="Subtitle-with-inline-code"></a>' \ + '<h2 >Subtitle with ' \ + '<code>inline code</code><a href="#Subtitle-with-inline-code" class="wiki-anchor">¶</a>' \ + '</h2>' + ), + result + ) # last heading assert_match( - Regexp.new('<div class="contextual heading-2" title="Edit this section" id="section-5">' + - '<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=5">Edit this section</a></div>' + - '<a name="Subtitle-after-pre-tag"></a>' + - '<h2 >Subtitle after pre tag<a href="#Subtitle-after-pre-tag" class="wiki-anchor">¶</a></h2>'), - result) + Regexp.new( + '<div class="contextual heading-2" title="Edit this section" id="section-5">' \ + '<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=5">' \ + 'Edit this section' \ + '</a></div>' \ + '<a name="Subtitle-after-pre-tag"></a>' \ + '<h2 >Subtitle after pre tag<a href="#Subtitle-after-pre-tag" class="wiki-anchor">¶</a></h2>' + ), + result + ) end def test_default_formatter |