summaryrefslogtreecommitdiffstats
path: root/test/unit/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-05 10:09:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-05 10:09:18 +0000
commit8841ba97c680fb826b228e8de8a586e61bc428bf (patch)
tree24df1aba6ee7f42b7d30615f4d2930f5250094eb /test/unit/helpers
parent7fb0fe2e910a4188db283c359d9b1d05dad99041 (diff)
downloadredmine-8841ba97c680fb826b228e8de8a586e61bc428bf.tar.gz
redmine-8841ba97c680fb826b228e8de8a586e61bc428bf.zip
Fixed: class attribute with spaces on pre tags truncated (#7033).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4468 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r--test/unit/helpers/application_helper_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 02b15fbf5..6327442c6 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -275,6 +275,9 @@ RAW
"<!-- opening comment" => "<p>&lt;!-- opening comment</p>",
# remove attributes except class
"<pre class='foo'>some text</pre>" => "<pre class='foo'>some text</pre>",
+ '<pre class="foo">some text</pre>' => '<pre class="foo">some text</pre>',
+ "<pre class='foo bar'>some text</pre>" => "<pre class='foo bar'>some text</pre>",
+ '<pre class="foo bar">some text</pre>' => '<pre class="foo bar">some text</pre>',
"<pre onmouseover='alert(1)'>some text</pre>" => "<pre>some text</pre>",
}
to_test.each { |text, result| assert_equal result, textilizable(text) }