Sha256: 91f12c641b708bec578d3cc85207d9451c2b657930a8fe0797f235abd539ad3f
Contents?: true
Size: 561 Bytes
Versions: 5
Compression:
Stored size: 561 Bytes
Contents
# -*- encoding: utf-8 -*- require 'test/unit' require 'helper' require 'webgen/tree' require 'webgen/contentprocessor' require 'webgen/tag' 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::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
5 entries across 5 versions & 2 rubygems