Cucumber: remove test dir if it's there

This commit is contained in:
Parker Moore 2013-04-14 20:59:40 +02:00
parent b51b796a1e
commit 48795462c2
1 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,7 @@
Before do
if File.directory?(TEST_DIR)
FileUtils.rm_rf(TEST_DIR)
end
FileUtils.mkdir(TEST_DIR)
Dir.chdir(TEST_DIR)
end