Sha256: d8e7f58d8e4cf0a5a45d755c4221acd280c3b5c33fd01c96fddc2319f38a5952

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 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::ContentProcessor::Context.new(:content => '# header', :chain => [node])
    assert_equal("<h1>header</h1>\n", @obj.call(context).content)
  end

end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
gettalong-webgen-0.5.7.20090227 test/test_contentprocessor_rdiscount.rb
thewoolleyman-webgen-0.5.8.20090419 test/test_contentprocessor_rdiscount.rb
webgen-0.5.7 test/test_contentprocessor_rdiscount.rb