summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-10-12 19:13:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-10-12 19:13:36 +0000
commit2ed9aa13f3f378a4498d0b45ad1dfb9e0012614e (patch)
tree60be9c0beff04e56f0106185202b22457a17b1b5 /test
parent52e422da61848d97d0f4dada406f23545e579318 (diff)
downloadredmine-2ed9aa13f3f378a4498d0b45ad1dfb9e0012614e.tar.gz
redmine-2ed9aa13f3f378a4498d0b45ad1dfb9e0012614e.zip
Remove pre tag attributes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1930 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-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 14ca3cc64..cbdba5971 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -181,7 +181,9 @@ class ApplicationHelperTest < HelperTestCase
"<pre><code>\nline 1\nline2</code></pre>" => "<pre><code>\nline 1\nline2</code></pre>",
"<pre><div>content</div></pre>" => "<pre>&lt;div&gt;content&lt;/div&gt;</pre>",
"HTML comment: <!-- no comments -->" => "<p>HTML comment: &lt;!-- no comments --&gt;</p>",
- "<!-- opening comment" => "<p>&lt;!-- opening comment</p>"
+ "<!-- opening comment" => "<p>&lt;!-- opening comment</p>",
+ # remove attributes
+ "<pre class='foo'>some text</pre>" => "<pre>some text</pre>",
}
to_test.each { |text, result| assert_equal result, textilizable(text) }
end