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

Version Path
gettalong-webgen-0.5.4.20080929 test/test_contentprocessor_rdiscount.rb
gettalong-webgen-0.5.5.20081001 test/test_contentprocessor_rdiscount.rb
gettalong-webgen-0.5.5.20081010 test/test_contentprocessor_rdiscount.rb
gettalong-webgen-0.5.5.20081012 test/test_contentprocessor_rdiscount.rb
gettalong-webgen-0.5.6.20081020 test/test_contentprocessor_rdiscount.rb
webgen-0.5.4 test/test_contentprocessor_rdiscount.rb
webgen-0.5.6 test/test_contentprocessor_rdiscount.rb
webgen-0.5.5 test/test_contentprocessor_rdiscount.rb