summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-06 01:30:45 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-06 01:30:45 +0000
commitb6668e3ebf88db93bd0e9d9806f1830d95e35744 (patch)
tree1950c0e700c52fd9bc300fe72908a19fb235c82c
parentfab81930f7861b11969c35ade4cb8dd04c51e7c0 (diff)
downloadredmine-b6668e3ebf88db93bd0e9d9806f1830d95e35744.tar.gz
redmine-b6668e3ebf88db93bd0e9d9806f1830d95e35744.zip
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
-rw-r--r--test/unit/helpers/application_helper_test.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 1b6218412..e640de0c7 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -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]]