Sha256: c4601c84c7afe6a414d6d09d5bf3b906af284e2e9e4e8d8b93b689eb871879b0
Contents?: true
Size: 688 Bytes
Versions: 76
Compression:
Stored size: 688 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 warn "Tilt::CreoleTemplate (disabled)" end
Version data entries
76 entries across 75 versions & 14 rubygems