Cucumber: remove test dir if it's there
This commit is contained in:
parent
b51b796a1e
commit
48795462c2
|
@ -1,4 +1,7 @@
|
||||||
Before do
|
Before do
|
||||||
|
if File.directory?(TEST_DIR)
|
||||||
|
FileUtils.rm_rf(TEST_DIR)
|
||||||
|
end
|
||||||
FileUtils.mkdir(TEST_DIR)
|
FileUtils.mkdir(TEST_DIR)
|
||||||
Dir.chdir(TEST_DIR)
|
Dir.chdir(TEST_DIR)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue