Sha256: 548f34f6f4201d0b499d4ed9439a062d85a56fe506866bf86de5dd1cb44b0b1f

Contents?: true

Size: 547 Bytes

Versions: 11

Compression:

Stored size: 547 Bytes

Contents

require 'test/unit'
require 'webgen/tree'
require 'webgen/contentprocessor'

class TestContentProcessorRDoc < Test::Unit::TestCase

  def test_call
    obj = Webgen::ContentProcessor::RDoc.new
    root = Webgen::Node.new(Webgen::Tree.new.dummy_root, '/', '/')
    node = Webgen::Node.new(root, 'test', 'test')
    context = Webgen::ContentProcessor::Context.new(:content => "* hello",
                                                    :chain => [node])
    assert_equal("<ul>\n<li>hello\n\n</li>\n</ul>\n", obj.call(context).content)
  end

end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.4.20080929 test/test_contentprocessor_rdoc.rb
gettalong-webgen-0.5.5.20081001 test/test_contentprocessor_rdoc.rb
gettalong-webgen-0.5.5.20081010 test/test_contentprocessor_rdoc.rb
gettalong-webgen-0.5.5.20081012 test/test_contentprocessor_rdoc.rb
gettalong-webgen-0.5.6.20081020 test/test_contentprocessor_rdoc.rb
webgen-0.5.3 test/test_contentprocessor_rdoc.rb
webgen-0.5.2 test/test_contentprocessor_rdoc.rb
webgen-0.5.1 test/test_contentprocessor_rdoc.rb
webgen-0.5.4 test/test_contentprocessor_rdoc.rb
webgen-0.5.6 test/test_contentprocessor_rdoc.rb
webgen-0.5.5 test/test_contentprocessor_rdoc.rb