Sha256: 9971682d525836c153c738261f26be132356e59bea22879109dcb32df994e110
Contents?: true
Size: 382 Bytes
Versions: 2
Compression:
Stored size: 382 Bytes
Contents
require 'tmpdir' require 'pathname' require 'fileutils' RSpec.configure do |config| config.around do |ex| tmpdir = Dir.mktmpdir('multi_sync') tmp = Pathname.new File.join(tmpdir, ex.__id__.to_s) pwd = Dir.pwd FileUtils.mkdir(tmp) begin Dir.chdir(tmp) ex.run Dir.chdir(pwd) ensure FileUtils.remove_entry_secure tmp end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
multi_sync-0.0.4 | spec/support/tmpdir.rb |
multi_sync-0.0.3 | spec/support/tmpdir.rb |