Create the tmp path when running tests so they pass

This commit is contained in:
Mitchell Hashimoto 2010-09-06 18:29:49 -07:00
parent 4342c87473
commit f85401481b
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,9 @@ module VagrantTestHelpers
module Path
# Path to the tmp directory for the tests
def tmp_path
Vagrant.source_root.join("test", "tmp")
result = Vagrant.source_root.join("test", "tmp")
FileUtils.mkdir_p(result)
result
end
# Path to the "home" directory for the tests