From 6b88de1234524faa3beae8b54b2887dbb4a2867c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 15 Mar 2010 19:57:35 +0000 Subject: Close unclosed pre/code tags (#4265). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3590 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/helpers/application_helper_test.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/unit/helpers') diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 011df82fe..11bbe908d 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -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 +

+RAW
+
+    expected = <<-EXPECTED
+

+
+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

-- 
cgit v1.2.3