Rails4: replace hard-coded html with class at ApplicationHelperTest#test_pre_content_should_not_parse_wiki_and_redmine_links
See r12784 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@12828 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fab81930f7
commit
b6668e3ebf
|
@ -816,9 +816,17 @@ EXPECTED
|
|||
</pre>
|
||||
RAW
|
||||
|
||||
result1 = link_to("CookBook documentation",
|
||||
"/projects/ecookbook/wiki/CookBook_documentation",
|
||||
:class => "wiki-page")
|
||||
result2 = link_to('#1',
|
||||
"/issues/1",
|
||||
:class => Issue.find(1).css_classes,
|
||||
:title => "Can't print recipes (New)")
|
||||
|
||||
expected = <<-EXPECTED
|
||||
<p><a href="/projects/ecookbook/wiki/CookBook_documentation" class="wiki-page">CookBook documentation</a></p>
|
||||
<p><a href="/issues/1" class="#{Issue.find(1).css_classes}" title="#{ESCAPED_UCANT} print recipes (New)">#1</a></p>
|
||||
<p>#{result1}</p>
|
||||
<p>#{result2}</p>
|
||||
<pre>
|
||||
[[CookBook documentation]]
|
||||
|
||||
|
|
Loading…
Reference in New Issue