Sha256: d8ab2f57200f1cef552ecc625a44ec7b673dbadbf017f100807bdff4bbf1f8e6
Contents?: true
Size: 507 Bytes
Versions: 2
Compression:
Stored size: 507 Bytes
Contents
# -*- encoding: utf-8 -*- require 'test/unit' 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 & 2 rubygems
Version | Path |
---|---|
gettalong-webgen-0.5.8.20090507 | test/test_contentprocessor_rdiscount.rb |
webgen-0.5.8 | test/test_contentprocessor_rdiscount.rb |