require 'test_helper' module HoganAssets class TiltTest < Test::Unit::TestCase def test_mime_type assert_equal 'application/javascript', HoganAssets::Tilt.default_mime_type end def test_render scope = Class.new do def logical_path ; 'path/to/template' ; end end.new template = HoganAssets::Tilt.new('/myapp/app/assets/templates/path/to/template.mustache') { "This is {{mustache}}" } assert_equal <