Sha256: 86e6b9f0929053c0fcf7f026852f81904c718b805c35b388e6cbf176cdcfc307
Contents?: true
Size: 683 Bytes
Versions: 2
Compression:
Stored size: 683 Bytes
Contents
# -*- encoding: utf-8 -*- require 'webgen/test_helper' require 'webgen/path_handler/page' require 'webgen/path' class TestPathHandlerPage < MiniTest::Unit::TestCase include Webgen::TestHelper def setup setup_website('website.lang' => 'en') @root = Webgen::Node.new(@website.tree.dummy_root, '/', '/') @page = Webgen::PathHandler::Page.new(@website) end def test_create_node path = Webgen::Path.new('/default.page', 'dest_path' => '<parent><basename><ext>') { StringIO.new('test') } node = @page.create_nodes(path, ['content']) refute_nil(node) assert_equal(['content'], node.blocks) assert_equal('/default.en.html', node.alcn) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webgen-1.0.0.beta3 | test/webgen/path_handler/test_page.rb |
webgen-1.0.0.beta2 | test/webgen/path_handler/test_page.rb |