diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-09-28 15:20:17 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-09-28 15:20:17 -0500 |
commit | a4c358f84c183743edec0c5d6ef113d8e1a5500f (patch) | |
tree | b5ecc198897f4ef970f7e41d6ad64d382fa33b61 /railties/test/application | |
parent | 9eb72ac78f15078c362cb4bc6cc42ddda182127b (diff) | |
download | rails-a4c358f84c183743edec0c5d6ef113d8e1a5500f.tar.gz rails-a4c358f84c183743edec0c5d6ef113d8e1a5500f.tar.bz2 rails-a4c358f84c183743edec0c5d6ef113d8e1a5500f.zip |
Assets cache shouldn't be shared between different environments
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/assets_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index 6e9ae6b74e..12223287ba 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -323,7 +323,8 @@ module ApplicationTests clean_assets! - files = Dir["#{app_path}/public/assets/**/*", "#{app_path}/tmp/cache/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/*"] assert_equal 0, files.length, "Expected no assets, but found #{files.join(', ')}" end |