Sha256: a4d0785aacfb97aa81abad4c5f9ad8a222d36a1b82d7939fe9bf7c5c8ba0f231
Contents?: true
Size: 902 Bytes
Versions: 4
Compression:
Stored size: 902 Bytes
Contents
require 'handlebars_assets' require 'handlebars_assets/config' require 'handlebars_assets/tilt_handlebars' require 'handlebars_assets/handlebars' require 'test/unit' module SprocketsScope # Try to act like sprockets. def make_scope(root, file) Class.new do define_method(:logical_path) { pathname.to_s.gsub(root + '/', '').gsub(/\..*/, '') } define_method(:pathname) { Pathname.new(root) + file } define_method(:root_path) { root } end.new end end module HandlebarsAssets module Config extend self def reset! @compiler = nil @compiler_path = nil @known_helpers = nil @known_helpers_only = nil @options = nil @path_prefix = nil @template_namespace = nil end end class Handlebars def self.reset! @context = nil @source = nil @path = nil @assets_path = nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
handlebars_assets-0.6.7 | test/test_helper.rb |
handlebars_assets-0.6.6 | test/test_helper.rb |
handlebars_assets-0.6.5 | test/test_helper.rb |
handlebars_assets-0.6.4 | test/test_helper.rb |