1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-31 20:59:38 +00:00

code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_pre_content_should_not_parse_wiki_and_redmine_links

git-svn-id: http://svn.redmine.org/redmine/trunk@18806 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-22 11:40:36 +00:00
parent 7cae439d09
commit ba370734a9

View File

@ -1098,18 +1098,17 @@ class ApplicationHelperTest < Redmine::HelperTest
end
def test_pre_content_should_not_parse_wiki_and_redmine_links
raw = <<-RAW
[[CookBook documentation]]
raw = <<~RAW
[[CookBook documentation]]
#1
#1
<pre>
[[CookBook documentation]]
#1
</pre>
RAW
<pre>
[[CookBook documentation]]
#1
</pre>
RAW
result1 = link_to("CookBook documentation",
"/projects/ecookbook/wiki/CookBook_documentation",
:class => "wiki-page")
@ -1117,17 +1116,15 @@ RAW
"/issues/1",
:class => Issue.find(1).css_classes,
:title => "Bug: Cannot print recipes (New)")
expected = <<~EXPECTED
<p>#{result1}</p>
<p>#{result2}</p>
<pre>
[[CookBook documentation]]
expected = <<-EXPECTED
<p>#{result1}</p>
<p>#{result2}</p>
<pre>
[[CookBook documentation]]
#1
</pre>
EXPECTED
#1
</pre>
EXPECTED
@project = Project.find(1)
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
end