Sha256: f48b97a55ad91db8af2afc4c20623e40d23434019262e8cc7f01e234bc83af1e
Contents?: true
Size: 755 Bytes
Versions: 8
Compression:
Stored size: 755 Bytes
Contents
require 'test/unit' require 'helper' require 'webgen/sourcehandler/directory' require 'stringio' class TestSourceHandlerDirectory < Test::Unit::TestCase include Test::WebsiteHelper def test_create_node @obj = Webgen::SourceHandler::Directory.new root = Webgen::Node.new(Webgen::Tree.new.dummy_root, 'test/', 'test') node = @obj.create_node(root, path_with_meta_info('/dir/', {:key => :value}) {StringIO.new('')}) assert_not_nil(node) assert_equal(:value, node[:key]) assert_equal(node, @obj.create_node(root, path_with_meta_info('/dir/', {:key => :other}) {StringIO.new('')})) assert_equal(:other, node[:key]) end def test_content assert_equal('', Webgen::SourceHandler::Directory.new.content(nil)) end end
Version data entries
8 entries across 8 versions & 2 rubygems