Skip to content

Commit

Permalink
use Dir.mktmpdir rather than rolling our own
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jun 13, 2012
1 parent b81dab7 commit 54f4c75
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/test_helper.rb
@@ -1,6 +1,7 @@
$TEST_DIR = File.dirname(File.expand_path(__FILE__))
$TESTING = true
require 'tempfile'
require 'tmpdir'
require 'rubygems'
require 'minitest/autorun'
require 'rugged'
Expand Down Expand Up @@ -34,11 +35,7 @@ def temp_repo(repo)
end

def temp_dir
file = Tempfile.new('dir')
dir = file.path
file.unlink
Dir.mkdir(dir)
dir
Dir.mktmpdir 'dir'
end

def rm_loose(oid)
Expand Down

0 comments on commit 54f4c75

Please sign in to comment.