Fixed: inline code with less-then/greater-than produces @lt; and @gt; (#1416).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3567 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -60,4 +60,23 @@ class Redmine::WikiFormatting::TextileFormatterTest < HelperTestCase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_inline_code
|
||||
to_test = {
|
||||
'this is @some code@' => 'this is <code>some code</code>',
|
||||
'@<Location /redmine>@' => '<code><Location /redmine></code>',
|
||||
}
|
||||
to_test.each do |text, expected|
|
||||
assert_equal "<p>#{expected}</p>", @formatter.new(text).to_html
|
||||
end
|
||||
end
|
||||
|
||||
def test_escaping
|
||||
to_test = {
|
||||
'this is a <script>' => 'this is a <script>',
|
||||
}
|
||||
to_test.each do |text, expected|
|
||||
assert_equal "<p>#{expected}</p>", @formatter.new(text).to_html
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user