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

Version Path
gettalong-webgen-0.5.4.20080929 test/test_tag_metainfo.rb
gettalong-webgen-0.5.5.20081001 test/test_tag_metainfo.rb
webgen-0.5.0 test/test_tag_metainfo.rb
webgen-0.5.3 test/test_tag_metainfo.rb
webgen-0.5.4 test/test_tag_metainfo.rb
webgen-0.5.1 test/test_tag_metainfo.rb
webgen-0.5.2 test/test_tag_metainfo.rb
webgen-0.5.5 test/test_tag_metainfo.rb