Sha256: c5be1182902468a3e94778cc7c17b23e528bc65f9a8393ab308242eeebf9cbc4
Contents?: true
Size: 441 Bytes
Versions: 12
Compression:
Stored size: 441 Bytes
Contents
require 'test_helper' require_relative 'shared/adapter_tests' module HandlebarsAssets class HandlebarsTemplateTest < Minitest::Test include AdapterTests def teardown HandlebarsAssets::Config.reset! HandlebarsAssets::Handlebars.reset! end def render_it(scope, source) template = HandlebarsAssets::HandlebarsTemplate.new(scope.pathname.to_s) { source } template.render(scope, {}) end end end
Version data entries
12 entries across 12 versions & 3 rubygems