Sha256: fe5732df4cc664c82cc0980037449aa5419215dce0d78b2a2c8eef0e6d089d79
Contents?: true
Size: 625 Bytes
Versions: 76
Compression:
Stored size: 625 Bytes
Contents
require 'test_helper' require 'tilt' begin require 'tilt/kramdown' class KramdownTemplateTest < Minitest::Test test "preparing and evaluating templates on #render" do template = Tilt::KramdownTemplate.new { |t| "# Hello World!" } assert_equal '<h1 id="hello-world">Hello World!</h1>', template.render.strip end test "can be rendered more than once" do template = Tilt::KramdownTemplate.new { |t| "# Hello World!" } 3.times { assert_equal '<h1 id="hello-world">Hello World!</h1>', template.render.strip } end end rescue LoadError warn "Tilt::KramdownTemplate (disabled)" end
Version data entries
76 entries across 75 versions & 14 rubygems