Using File.exists? more generally instead of File.directory? so /tmp/jekyll is always removed before running tests
This commit is contained in:
parent
88e68e038a
commit
83cb01dd59
|
@ -1,5 +1,5 @@
|
|||
Before do
|
||||
if File.directory?(TEST_DIR)
|
||||
if File.exists?(TEST_DIR)
|
||||
FileUtils.rm_rf(TEST_DIR)
|
||||
end
|
||||
FileUtils.mkdir(TEST_DIR)
|
||||
|
|
Loading…
Reference in New Issue