mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 17:26:06 +01:00
Close unclosed pre/code tags (#4265).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3590 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -324,6 +324,20 @@ EXPECTED
|
||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
|
||||
end
|
||||
|
||||
def test_non_closing_pre_blocks_should_be_closed
|
||||
raw = <<-RAW
|
||||
<pre><code>
|
||||
RAW
|
||||
|
||||
expected = <<-EXPECTED
|
||||
<pre><code>
|
||||
</code></pre>
|
||||
EXPECTED
|
||||
|
||||
@project = Project.find(1)
|
||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
|
||||
end
|
||||
|
||||
def test_syntax_highlight
|
||||
raw = <<-RAW
|
||||
<pre><code class="ruby">
|
||||
|
||||
Reference in New Issue
Block a user