Sha256: 76ea885e43fecbd0141c72f1c9157b4c2f63f5c4e70e3247cea6299fbadcc6c9
Contents?: true
Size: 707 Bytes
Versions: 4
Compression:
Stored size: 707 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib') require 'test/unit' require 'ostruct' require 'glue/template' class TestTemplate < Test::Unit::TestCase # :nodoc: all include Glue def test_all template = %q{ Hello #{user} dont forget the following todo items: <?r for item in items ?> <li>#{item}</li> <?r end ?> } user = 'gmosx' items = %w{ nitro is really great } out = '' Template.process(template, :out, binding) assert_match %r{\<li\>nitro\</li\>}, out assert_match %r{\<li\>really\</li\>}, out assert_match %r{Hello gmosx}, out # TODO: add test for static inclusion. end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
glue-0.25.0 | test/glue/tc_template.rb |
glue-0.26.0 | test/glue/tc_template.rb |
glue-0.27.0 | test/glue/tc_template.rb |
glue-0.28.0 | test/glue/tc_template.rb |