Created
July 20, 2011 21:19
-
-
Save schacon/1095963 to your computer and use it in GitHub Desktop.
helper for tests to create a temp directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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