spec/generators/workflow_spec.rb in dslable-0.0.5 vs spec/generators/workflow_spec.rb in dslable-0.0.6

- old
+ new

@@ -64,17 +64,17 @@ end end def case_before(c) # implement each case before - Dir.mkdir(OUTPUT_WORKFLOW_TMP_DIR) unless Dir.exists? OUTPUT_WORKFLOW_TMP_DIR + Dir.mkdir(OUTPUT_WORKFLOW_TMP_DIR) unless Dir.exist? OUTPUT_WORKFLOW_TMP_DIR Dir.chdir(OUTPUT_WORKFLOW_TMP_DIR) end def case_after(c) # implement each case after Dir.chdir('../') - FileUtils.rm_rf(OUTPUT_WORKFLOW_TMP_DIR) if Dir.exists? OUTPUT_WORKFLOW_TMP_DIR + FileUtils.rm_rf(OUTPUT_WORKFLOW_TMP_DIR) if Dir.exist? OUTPUT_WORKFLOW_TMP_DIR end end end end