Sha256: 6aa44c0579e039d81b653c10f1421f3e9e1f7f4e0bc54fa7cf8d6864a1c63401
Contents?: true
Size: 524 Bytes
Versions: 2
Compression:
Stored size: 524 Bytes
Contents
# -*- encoding: utf-8 -*- require 'test/unit' require 'helper' require 'webgen/node' require 'webgen/tree' require 'webgen/contentprocessor' class TestContentProcessorRDiscount < Test::Unit::TestCase def test_call @obj = Webgen::ContentProcessor::RDiscount.new node = Webgen::Node.new(Webgen::Node.new(Webgen::Tree.new.dummy_root, '/', '/'), 'test', 'test') context = Webgen::Context.new(:content => '# header', :chain => [node]) assert_equal("<h1>header</h1>\n", @obj.call(context).content) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gettalong-webgen-0.5.9.20090620 | test/test_contentprocessor_rdiscount.rb |
gettalong-webgen-0.5.9.20090626 | test/test_contentprocessor_rdiscount.rb |