Use different sprockets cache directories in test vs. dev environment

pull/308/merge
Thibaut Courouble 9 years ago
parent c3b9502657
commit e0b5cfbaa5

@ -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

Loading…
Cancel
Save