diff options
author | murphy <murphy@rubychan.de> | 2008-08-28 04:55:59 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2008-08-28 04:55:59 +0000 |
commit | 59532a9fd20fa906367310932cf87680cc9ecbea (patch) | |
tree | 9c68fd7ee698e3a0996673cf32ddf7cea1b343b1 /test | |
parent | 0e5dd1d44197d1b22ecb1828bbd289a8a3198875 (diff) | |
download | coderay-59532a9fd20fa906367310932cf87680cc9ecbea.tar.gz |
Added CodeRay.for_redcloth with test and documentation.
* Tested with RedCloth 4.0.3.
* Also added :ee task for the Ruby Enterprise Edition (rubyee).
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/basic.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 '<p><span lang="ruby" class="CodeRay">puts <span style="background-color:#fff0f0"><span style="color:#710">"</span><span style="color:#D20">Hello, World!</span><span style="color:#710">"</span></span></span></p>', + RedCloth.new('@[ruby]puts "Hello, World!"@').to_html + end + ENCODERS_LIST = %w( count debug div html null page span statistic text tokens xml yaml ) |