Sha256: 4f4df5b0a067766c0eee677e0649dd3b57ff3b85277edc8f62292171d0b56804
Contents?: true
Size: 633 Bytes
Versions: 33
Compression:
Stored size: 633 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 => boom warn "Tilt::KramdownTemplate (disabled)" end
Version data entries
33 entries across 33 versions & 10 rubygems