summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/html_parser_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
index 4662aeaeb..8f6ff5ab7 100644
--- a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
@@ -27,4 +27,9 @@ class Redmine::WikiFormatting::HtmlParserTest < ActiveSupport::TestCase
assert_equal "A html snippet with\na new line.",
@parser.to_text('<p>A html snippet with<br>a new line.</p>')
end
+
+ def test_should_remove_style_tags_from_body
+ assert_equal "Text",
+ @parser.to_text('<html><body><style>body {font-size: 0.8em;}</style>Text</body></html>')
+ end
end