Browse Source

Use different sprockets cache directories in test vs. dev environment

Thibaut Courouble 10 years ago
parent
commit
e0b5cfbaa5
1 changed files with 1 additions and 1 deletions
  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