mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
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
This commit is contained in:
parent
a3246bf5fa
commit
8e6014a9f8
@ -1470,18 +1470,19 @@ class ApplicationHelperTest < Redmine::HelperTest
|
|||||||
:project_id => '1', :id => 'Test'}
|
:project_id => '1', :id => 'Test'}
|
||||||
).gsub("\n", "")
|
).gsub("\n", "")
|
||||||
# heading that contains inline code
|
# 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 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>' +
|
'<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>'),
|
'<h2 >Subtitle with <code>inline code</code><a href="#Subtitle-with-inline-code" class="wiki-anchor">¶</a></h2>'),
|
||||||
result
|
result)
|
||||||
|
|
||||||
# last heading
|
# 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 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>' +
|
'<a name="Subtitle-after-pre-tag"></a>' +
|
||||||
'<h2 >Subtitle after pre tag<a href="#Subtitle-after-pre-tag" class="wiki-anchor">¶</a></h2>'),
|
'<h2 >Subtitle after pre tag<a href="#Subtitle-after-pre-tag" class="wiki-anchor">¶</a></h2>'),
|
||||||
result
|
result)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_default_formatter
|
def test_default_formatter
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user