Sha256: bf286b9b0f7d78312f6ecdbbfd10abd34b97c2c610cb85ebcd7bc3c67b566879
Contents?: true
Size: 498 Bytes
Versions: 8
Compression:
Stored size: 498 Bytes
Contents
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::ContentProcessor::Context.new(:content => '# header', :chain => [node]) assert_equal("<h1>header</h1>\n", @obj.call(context).content) end end
Version data entries
8 entries across 8 versions & 2 rubygems