From e0b5cfbaa57c3b1616547d561a7e7b06229a5ec7 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 24 Jan 2016 15:44:29 -0500 Subject: [PATCH] Use different sprockets cache directories in test vs. dev environment --- lib/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app.rb b/lib/app.rb index c25ed086..37e10012 100644 --- a/lib/app.rb +++ b/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