diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-17 14:04:43 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-17 14:04:55 -0700 |
commit | abd74308957b383777c6a391017d39097309fe07 (patch) | |
tree | 679fa6c5b7d2c918146286233a59f9b79bb8f312 /actionpack/test | |
parent | 8d126c9424208a52b01ad5237a48b214063e2a99 (diff) | |
download | rails-abd74308957b383777c6a391017d39097309fe07.tar.gz rails-abd74308957b383777c6a391017d39097309fe07.tar.bz2 rails-abd74308957b383777c6a391017d39097309fe07.zip |
fix filesystem race condition
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/log_subscriber_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/log_subscriber_test.rb b/actionpack/test/controller/log_subscriber_test.rb index 18037b3d2f..49be7caf38 100644 --- a/actionpack/test/controller/log_subscriber_test.rb +++ b/actionpack/test/controller/log_subscriber_test.rb @@ -85,7 +85,7 @@ class ACLogSubscriberTest < ActionController::TestCase @old_logger = ActionController::Base.logger - @cache_path = File.expand_path('../temp/test_cache', File.dirname(__FILE__)) + @cache_path = File.join Dir.tmpdir, Dir::Tmpname.make_tmpname('tmp', 'cache') @controller.cache_store = :file_store, @cache_path ActionController::LogSubscriber.attach_to :action_controller end |