Merge pull request #31099 from nobu/patch-1

Use `Tempfile.create`
This commit is contained in:
Rafael Mendonça França 2017-11-09 11:56:58 -05:00
commit 5961d6882b
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class ACLogSubscriberTest < ActionController::TestCase
@old_logger = ActionController::Base.logger
@cache_path = File.join Dir.tmpdir, Dir::Tmpname.make_tmpname("tmp", "cache")
@cache_path = Dir.mktmpdir(%w[tmp cache])
@controller.cache_store = :file_store, @cache_path
ActionController::LogSubscriber.attach_to :action_controller
end