소스 검색

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