summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/helpers/application_helper_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 27c711dda..883e9d33e 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -994,6 +994,12 @@ EXPECTED
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
end
+ def test_unbalanced_closing_pre_tag_should_not_error
+ assert_nothing_raised do
+ textilizable("unbalanced</pre>")
+ end
+ end
+
def test_syntax_highlight
raw = <<-RAW
<pre><code class="ruby">