require 'test_helper' module HandlebarsAssets class TiltHandlebarsTest < Test::Unit::TestCase include SprocketsScope def expected_compiled(source) compiler_src = Pathname(HandlebarsAssets::Config.compiler_path).join(HandlebarsAssets::Config.compiler).read ExecJS.compile(compiler_src).call('Handlebars.precompile', source, HandlebarsAssets::Config.options) end def hbs_compiled(template_name, source) compiled_hbs = expected_compiled(source) template_namespace = HandlebarsAssets::Config.template_namespace <