Skip to content

Instantly share code, notes, and snippets.

@schacon
Created July 20, 2011 21:19
Show Gist options
  • Save schacon/1095963 to your computer and use it in GitHub Desktop.
Save schacon/1095963 to your computer and use it in GitHub Desktop.
helper for tests to create a temp directory
def temp_path
t = Tempfile.new('graph')
fpath = t.path
t.unlink
FileUtils.mkdir_p(fpath)
fpath
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment