Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.517 kb
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 "<h1>Hello World!</h1>", template.render
end
end
rescue LoadError => boom
warn "Tilt::RedClothTemplate (disabled)\n"
end
Jump to Line
Something went wrong with that request. Please try again.