Sha256: ae854f2ba69f41dc8de20dbe35179df6d0a708730b24b3dfc26a465155ea1936
Contents?: true
Size: 544 Bytes
Versions: 8
Compression:
Stored size: 544 Bytes
Contents
require 'test/unit' require 'webgen/tree' require 'webgen/contentprocessor' require 'webgen/tag/metainfo' class TestTagMetainfo < Test::Unit::TestCase def test_call @obj = Webgen::Tag::Metainfo.new node = Webgen::Node.new(Webgen::Tree.new.dummy_root, 'hallo.page', 'hallo.page', 'test' => 10, 'lang' => 'en') c = Webgen::ContentProcessor::Context.new(:chain => [node]) assert_equal('', @obj.call('invalid', '', c)) assert_equal('10', @obj.call('test', '', c)) assert_equal('en', @obj.call('lang', '', c)) end end
Version data entries
8 entries across 8 versions & 2 rubygems