Using File.exists? more generally instead of File.directory? so /tmp/jekyll is always removed before running tests

This commit is contained in:
Parker Moore 2013-04-15 14:33:52 +02:00
parent 88e68e038a
commit 83cb01dd59
1 changed files with 1 additions and 1 deletions

View File

@ -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)