Sha256: 57f2182a2b9f997cf0f410f69d6cecce47260f99aeffac713d7e0b4780f02170
Contents?: true
Size: 369 Bytes
Versions: 2
Compression:
Stored size: 369 Bytes
Contents
require 'creole/template' describe Creole::Template do it 'should be registered for .creole files' do Tilt.mappings['creole'].should.equal Creole::Template end it 'should prepare and evaluate templates on #render' do template = Creole::Template.new { |t| '= Hello World!' } 3.times { template.render.should.equal '<h1>Hello World!</h1>' } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
creole-0.4.1 | test/template_test.rb |
creole-0.4.0 | test/template_test.rb |