Sha256: 7f4f72d2a673485190c4aa378c4c252c14bbf080b2df76d7a0ad4d1479f8f57b
Contents?: true
Size: 625 Bytes
Versions: 6
Compression:
Stored size: 625 Bytes
Contents
require 'webgen/test' require 'webgen/node' class CustomVarTagTest < Webgen::TagTestCase plugin_files [ 'webgen/plugins/tags/customvar.rb' ] plugin_to_test 'Tag/CustomVar' def test_process_tag node = Node.new( nil, 'hallo.page' ) @manager['Core/Configuration'].param('customVars').replace( {} ) set_config( 'var' => 'test' ) assert_equal( '', @plugin.process_tag( 'customVar', [node] ) ) @manager['Core/Configuration'].param('customVars').replace( {'test' => 'value'} ) set_config( 'var' => 'test' ) assert_equal( 'value', @plugin.process_tag( 'customVar', [node] ) ) end end
Version data entries
6 entries across 6 versions & 1 rubygems