test/spec_helper.rb in less-rails-2.2.4 vs test/spec_helper.rb in less-rails-2.2.5

- old
+ new

@@ -53,10 +53,16 @@ dummy_config.less.compress = true end def reset_caches dummy_assets.version = SecureRandom.hex(32) - dummy_assets.cache.clear + cache = dummy_assets.cache + if cache.is_a? Sprockets::Cache::FileStore + path = cache.instance_variable_get(:@root) + cache = Sprockets::Cache::FileStore.new(path) + else + cache.clear + end end def prepare_cache_dir mkdir_p "#{dummy_tmp}/cache/assets" end