Sha256: 21b74107c58356e9938087e5c60debde7c74acc6acc3c11bc60d41366e4e5ae9
Contents?: true
Size: 696 Bytes
Versions: 33
Compression:
Stored size: 696 Bytes
Contents
require 'test_helper' require 'tilt' begin require 'tilt/creole' class CreoleTemplateTest < Minitest::Test test "is registered for '.creole' files" do assert_equal Tilt::CreoleTemplate, Tilt['test.creole'] end test "compiles and evaluates the template on #render" do template = Tilt::CreoleTemplate.new { |t| "= Hello World!" } assert_equal "<h1>Hello World!</h1>", template.render end test "can be rendered more than once" do template = Tilt::CreoleTemplate.new { |t| "= Hello World!" } 3.times { assert_equal "<h1>Hello World!</h1>", template.render } end end rescue LoadError => boom warn "Tilt::CreoleTemplate (disabled)" end
Version data entries
33 entries across 33 versions & 10 rubygems