Sha256: 046acb0bfef241e151be0417495fd2bc85c4dd23233775b5f5a0f51b848344cc
Contents?: true
Size: 728 Bytes
Versions: 6
Compression:
Stored size: 728 Bytes
Contents
# -*- encoding: utf-8 -*- require 'test/unit' require 'helper' require 'webgen/contentprocessor' class TestContentProcessor < Test::Unit::TestCase include Test::WebsiteHelper def setup super @website.config.data['contentprocessor.map'] = {'test' => Hash} end def test_access_hash ah = Webgen::ContentProcessor::AccessHash.new assert(ah.has_key?('test')) assert(!ah.has_key?('other')) assert_kind_of(Hash, ah['test']) assert_nil(ah['other']) end def test_list assert_equal(['test'], Webgen::ContentProcessor.list) end def test_for_name assert_kind_of(Hash, Webgen::ContentProcessor.for_name('test')) assert_nil(Webgen::ContentProcessor.for_name('other')) end end
Version data entries
6 entries across 6 versions & 3 rubygems