Sha256: c99ccd545602f9b637b898099099975e00d0f16becab53d3e01d7ef61d0c5c82
Contents?: true
Size: 581 Bytes
Versions: 5
Compression:
Stored size: 581 Bytes
Contents
require 'contest' require 'tilt' begin require 'coffee-script' class CoffeeTemplateTest < Test::Unit::TestCase test "is registered for '.coffee' files" do assert_equal Tilt::CoffeeTemplate, Tilt['test.coffee'] end test "compiles and evaluates the template on #render" do template = Tilt::CoffeeTemplate.new { |t| "greeting: \"Hello CoffeeScript\"" } assert_equal "(function(){\n var greeting;\n greeting = \"Hello CoffeeScript\";\n})();", template.render end end rescue LoadError => boom warn "Tilt::CoffeeTemplate (disabled)\n" end
Version data entries
5 entries across 5 versions & 1 rubygems