Sha256: adc0582a74f3577f366f4391ad57064bea0b9a611febc6c2208d3a3b9505a53a
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
require File.join(File.dirname(__FILE__), 'CONFIG.rb') require 'test/unit' require 'nitro/template' class TestTemplate < Test::Unit::TestCase # :nodoc: all include Nitro 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 = '' Nitro::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.40.0 | test/nitro/tc_template.rb |