diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-05 10:09:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-05 10:09:18 +0000 |
commit | 8841ba97c680fb826b228e8de8a586e61bc428bf (patch) | |
tree | 24df1aba6ee7f42b7d30615f4d2930f5250094eb /test/unit/helpers | |
parent | 7fb0fe2e910a4188db283c359d9b1d05dad99041 (diff) | |
download | redmine-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.rb | 3 |
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><!-- 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) } |