test/test_helper.rb in hogan_assets-1.5.0 vs test/test_helper.rb in hogan_assets-1.5.1
- old
+ new
@@ -1,8 +1,17 @@
require 'hogan_assets'
require 'test/unit'
+module HoganAssets::Config
+ def reset!
+ %w(env lambda_support path_prefix template_extensions template_namespace haml_options slim_options slimstache_extensions hamstache_extensions).each do |option|
+ send "#{option}=", nil
+ end
+
+
+ end
+end
module TestSupport
# Try to act like sprockets.
def make_scope(root, file)
Class.new do
define_method(:logical_path) { pathname.to_s.gsub(root + '/', '').gsub(/\..*/, '') }