From df8bccf987e636d442e43f8c704d750f6519bd3f Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 18 Feb 2009 19:39:26 +0000 Subject: Fixed a bug in for_redcloth.rb (closes #87). * No more closing PRE tags in RedCloth output. * Added j, j19, and test:functional:all tasks. --- test/functional/basic.rb | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'test/functional/basic.rb') diff --git a/test/functional/basic.rb b/test/functional/basic.rb index d629bd5..d2bc9f1 100755 --- a/test/functional/basic.rb +++ b/test/functional/basic.rb @@ -48,11 +48,30 @@ class BasicTest < Test::Unit::TestCase
puts "Hello, World!"
- BLOCKCODE RedCloth.new('bc[ruby]. puts "Hello, World!"').to_html end + def test_for_redcloth_no_lang + require 'rubygems' + require 'coderay/for_redcloth' + assert_equal "

puts \"Hello, World!\"

", + RedCloth.new('@puts "Hello, World!"@').to_html + assert_equal <<-BLOCKCODE.chomp, +
puts \"Hello, World!\"
+ BLOCKCODE + RedCloth.new('bc. puts "Hello, World!"').to_html + end + + def test_for_redcloth_style + require 'rubygems' + require 'coderay/for_redcloth' + assert_equal <<-BLOCKCODE.chomp, +
puts \"Hello, World!\"
+ BLOCKCODE + RedCloth.new('bc{color: red}. puts "Hello, World!"').to_html + end + def test_for_redcloth_escapes require 'rubygems' require 'coderay/for_redcloth' @@ -62,7 +81,6 @@ class BasicTest < Test::Unit::TestCase
&
- BLOCKCODE RedCloth.new('bc[ruby]. &').to_html end -- cgit v1.2.1