From 28fac2774ecfe248013f02c43ca78b90d0b20b23 Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 28 Aug 2008 06:32:34 +0000 Subject: Fixed coderay/for_redcloth escaping. --- test/functional/basic.rb | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'test/functional/basic.rb') diff --git a/test/functional/basic.rb b/test/functional/basic.rb index 2880c77..9862f77 100755 --- a/test/functional/basic.rb +++ b/test/functional/basic.rb @@ -37,8 +37,29 @@ class BasicTest < Test::Unit::TestCase def test_for_redcloth require 'rubygems' require 'coderay/for_redcloth' - assert_equal '

puts "Hello, World!"

', + assert_equal '

puts "Hello, World!"

', RedCloth.new('@[ruby]puts "Hello, World!"@').to_html + assert_equal <<-BLOCKCODE.chomp, +
+
puts "Hello, World!"
+
+ +BLOCKCODE + RedCloth.new('bc[ruby]. puts "Hello, World!"').to_html + end + + def test_for_redcloth_escapes + require 'rubygems' + require 'coderay/for_redcloth' + assert_equal '

>

', + RedCloth.new('@[ruby]>@').to_html + assert_equal <<-BLOCKCODE.chomp, +
+
&
+
+ +BLOCKCODE + RedCloth.new('bc[ruby]. &').to_html end ENCODERS_LIST = %w( -- cgit v1.2.1