Sha256: a9d465cb4ba16162704db05f5700515ecf564589f9ace0e0e2cc8bdd84fb2fba
Contents?: true
Size: 777 Bytes
Versions: 4
Compression:
Stored size: 777 Bytes
Contents
# -*- encoding: utf-8 -*- require 'test/unit' require 'helper' require 'webgen/tag' class TestTagCoderay < Test::Unit::TestCase include Test::WebsiteHelper def setup super @obj = Webgen::Tag::Coderay.new end def call(context, body, lang, process) @obj.set_params({'tag.coderay.lang' => lang, 'tag.coderay.process' => process}) result = @obj.call('coderay', body, context) @obj.set_params({}) result end def test_call root = Webgen::Node.new(Webgen::Tree.new.dummy_root, '/', '/', {'title' => 'Hallo'}) context = Webgen::Context.new(:chain => [root]) assert(call(context, 'TestData', 'html', false).include?('TestData')) assert(call(context, '{title:}', :ruby, true).include?('Hallo')) end end
Version data entries
4 entries across 4 versions & 2 rubygems