Sha256: 1bd2e85e07370b1b5ad9e336fb5c3342cbb4413162debfd832ac07efd6d86c6f

Contents?: true

Size: 535 Bytes

Versions: 4

Compression:

Stored size: 535 Bytes

Contents

require 'test/unit'
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::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

4 entries across 4 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.5.20081010 test/test_tag_metainfo.rb
gettalong-webgen-0.5.5.20081012 test/test_tag_metainfo.rb
gettalong-webgen-0.5.6.20081020 test/test_tag_metainfo.rb
webgen-0.5.6 test/test_tag_metainfo.rb