提交 ab18d37f 编写于 作者: Y yuuji.yaginuma

do not create unnecessary directory

This was added in a4c358f8, but `config.assets` has been removed in 5172d933.
Also, do not use env path to `Sprockets::Cache::FileStore` even `sprockets-rails`.
ref: https://github.com/rails/sprockets-rails/blob/master/lib/sprockets/railtie.rb#L129
上级 87c2c070
......@@ -5,9 +5,7 @@ namespace :tmp do
tmp_dirs = [ 'tmp/cache',
'tmp/sockets',
'tmp/pids',
'tmp/cache/assets/development',
'tmp/cache/assets/test',
'tmp/cache/assets/production' ]
'tmp/cache/assets' ]
tmp_dirs.each { |d| directory d }
......
......@@ -344,8 +344,7 @@ class User < ActiveRecord::Base; raise 'should not be reached'; end
clean_assets!
files = Dir["#{app_path}/public/assets/**/*", "#{app_path}/tmp/cache/assets/development/*",
"#{app_path}/tmp/cache/assets/test/*", "#{app_path}/tmp/cache/assets/production/*"]
files = Dir["#{app_path}/public/assets/**/*"]
assert_equal 0, files.length, "Expected no assets, but found #{files.join(', ')}"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册