diff options
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 ) |