require 'contest' require 'tilt' begin require 'redcloth' class RedClothTemplateTest < Test::Unit::TestCase test "is registered for '.textile' files" do assert_equal Tilt::RedClothTemplate, Tilt['test.textile'] end test "compiles and evaluates the template on #render" do template = Tilt::RedClothTemplate.new { |t| "h1. Hello World!" } assert_equal "

Hello World!

", template.render end end rescue LoadError => boom warn "Tilt::RedClothTemplate (disabled)\n" end