Another unit test for dirify

This commit is contained in:
Andy Meneely
2014-10-29 15:37:45 -04:00
parent aad7180c8b
commit 2a58323bd4
4 changed files with 33 additions and 10 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ module Squib
def dirify(opts, key, allow_create=false)
return opts if Dir.exists?(opts[key])
if allow_create
Squib.logger.warn {"Dir #{opts[key]} does not exist, creating it."}
Squib.logger.warn("Dir '#{opts[key]}' does not exist, creating it.")
Dir.mkdir opts[key]
return opts
else