From 59532a9fd20fa906367310932cf87680cc9ecbea Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 28 Aug 2008 04:55:59 +0000 Subject: Added CodeRay.for_redcloth with test and documentation. * Tested with RedCloth 4.0.3. * Also added :ee task for the Ruby Enterprise Edition (rubyee). --- test/functional/basic.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/functional/basic.rb') diff --git a/test/functional/basic.rb b/test/functional/basic.rb index 5e0e759..07818ea 100755 --- a/test/functional/basic.rb +++ b/test/functional/basic.rb @@ -34,6 +34,13 @@ class BasicTest < Test::Unit::TestCase CodeRay::Duo[:plain, :plain].highlight(RUBY_TEST_CODE, :stream => true)) end + def test_for_redcloth + require 'rubygems' + CodeRay.for_redcloth + assert_equal '

puts "Hello, World!"

', + RedCloth.new('@[ruby]puts "Hello, World!"@').to_html + end + ENCODERS_LIST = %w( count debug div html null page span statistic text tokens xml yaml ) -- cgit v1.2.1