fix filesystem race condition

This commit is contained in:
Aaron Patterson 2014-07-17 14:04:43 -07:00
parent 8d126c9424
commit abd7430895
1 changed files with 1 additions and 1 deletions

View File

@ -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