diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 18:16:15 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 18:16:15 +0000 |
commit | 8e6014a9f8c99d51b532ab38a110ea2bd017092b (patch) | |
tree | 90443281e35b30b1622f5a18c9c735f512501668 /test | |
parent | a3246bf5fa2bc9a557a15cc654b3df0cbdfbfb04 (diff) | |
download | redmine-8e6014a9f8c99d51b532ab38a110ea2bd017092b.tar.gz redmine-8e6014a9f8c99d51b532ab38a110ea2bd017092b.zip |
cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_section_edit_links
git-svn-id: http://svn.redmine.org/redmine/trunk@19052 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/helpers/application_helper_test.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 217d46589..8e5a3a03a 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1470,18 +1470,19 @@ class ApplicationHelperTest < Redmine::HelperTest :project_id => '1', :id => 'Test'} ).gsub("\n", "") # heading that contains inline code - assert_match Regexp.new('<div class="contextual heading-2" title="Edit this section" id="section-4">' + + 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 - + result) # last heading - assert_match Regexp.new('<div class="contextual heading-2" title="Edit this section" id="section-5">' + + 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 + result) end def test_default_formatter |