Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a07bef9

Browse files
committed
do not use cache in tests
1 parent 0fe366f commit a07bef9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/assets_test.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ def setup
1212
FileUtils.mkdir_p tmp_path
1313

1414
@app = Class.new(Rails::Application)
15+
1516
@app.config.eager_load = false
1617
@app.config.active_support.deprecation = :stderr
17-
@app.config.assets.enabled = true
18-
@app.config.assets.cache_store = [ :file_store, "#{tmp_path}/cache" ]
18+
@app.config.assets.configure do |env|
19+
env.cache = ActiveSupport::Cache.lookup_store(:memory_store)
20+
end
1921
@app.config.assets.paths << "#{File.dirname(__FILE__)}/fixtures/assets"
2022
@app.paths["log"] = "#{tmp_path}/log/test.log"
2123
@app.initialize!

0 commit comments

Comments
 (0)