浏览代码

Use different sprockets cache directories in test vs. dev environment

Thibaut Courouble 10 年之前
父节点
当前提交
e0b5cfbaa5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/app.rb

+ 1 - 1
lib/app.rb

@@ -54,7 +54,7 @@ class App < Sinatra::Application
   configure :test, :development do
     require 'active_support/per_thread_registry'
     require 'active_support/cache'
-    sprockets.cache = ActiveSupport::Cache.lookup_store :file_store, root.join('tmp', 'cache', 'assets')
+    sprockets.cache = ActiveSupport::Cache.lookup_store :file_store, root.join('tmp', 'cache', 'assets', environment.to_s)
   end
 
   configure :development do