summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-04-07 17:38:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-04-07 17:38:52 +0000
commita6acc7790406974d8a99849bd0d476f43b5b0105 (patch)
treeb7f336a21286e91e1796cf9865cde53345fe5386 /test/unit
parentbab9b0d6ff7e51b774446c4a83cdb728c99ae684 (diff)
downloadredmine-a6acc7790406974d8a99849bd0d476f43b5b0105.tar.gz
redmine-a6acc7790406974d8a99849bd0d476f43b5b0105.zip
Add test for r2664 (#3127).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2665 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/helpers/application_helper_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index c1b30c5f0..a8b7edea5 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -107,7 +107,9 @@ class ApplicationHelperTest < HelperTestCase
'"link (Link title with "double-quotes")":http://foo.bar' => '<a href="http://foo.bar" title="Link title with &quot;double-quotes&quot;" class="external">link</a>',
"This is not a \"Link\":\n\nAnother paragraph" => "This is not a \"Link\":</p>\n\n\n\t<p>Another paragraph",
# no multiline link text
- "This is a double quote \"on the first line\nand another on a second line\":test" => "This is a double quote \"on the first line<br />\nand another on a second line\":test"
+ "This is a double quote \"on the first line\nand another on a second line\":test" => "This is a double quote \"on the first line<br />\nand another on a second line\":test",
+ # mailto link
+ "\"system administrator\":mailto:sysadmin@example.com?subject=redmine%20permissions" => "<a href=\"mailto:sysadmin@example.com?subject=redmine%20permissions\">system administrator</a>",
}
to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text) }
end