changeset 20 | 9d59d30685cb |
parent 17 | 23c7f5c8ee39 |
--- a/spec/spec_helpers.rb Tue May 16 13:58:56 2017 -0700 +++ b/spec/spec_helpers.rb Tue May 16 15:52:05 2017 -0700 @@ -3,6 +3,7 @@ require 'simplecov' if ENV['COVERAGE'] require 'rspec' require 'fileutils' +require 'tmpdir' require_relative '../lib/ezmlm' @@ -30,7 +31,8 @@ ### Create a copy of a fresh listdir into /tmp. ### def make_listdir - dirname = "/tmp/%s.%d.%0.4f" % [ + dirname = "%s/%s.%d.%0.4f" % [ + Dir.tmpdir, 'ezmlm_list', Process.pid, (Time.now.to_f % 3600),