Sha256: 27bd1ddbd07e8a79d2610756b924cbc7b2de1e254da14ddb3629be479cdafd5f
Contents?: true
Size: 713 Bytes
Versions: 3
Compression:
Stored size: 713 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 = '' Glue::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
glue-0.31.0 | test/glue/tc_template.rb |
glue-0.29.0 | test/glue/tc_template.rb |
glue-0.30.0 | test/glue/tc_template.rb |