Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fe366f commit a07bef9Copy full SHA for a07bef9
test/assets_test.rb
@@ -12,10 +12,12 @@ def setup
12
FileUtils.mkdir_p tmp_path
13
14
@app = Class.new(Rails::Application)
15
+
16
@app.config.eager_load = false
17
@app.config.active_support.deprecation = :stderr
- @app.config.assets.enabled = true
18
- @app.config.assets.cache_store = [ :file_store, "#{tmp_path}/cache" ]
+ @app.config.assets.configure do |env|
19
+ env.cache = ActiveSupport::Cache.lookup_store(:memory_store)
20
+ end
21
@app.config.assets.paths << "#{File.dirname(__FILE__)}/fixtures/assets"
22
@app.paths["log"] = "#{tmp_path}/log/test.log"
23
@app.initialize!
0 commit comments