Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
darthorimar committed Jul 18, 2017
commit b7cc3452a60d58d8c6fa09ec9f75cda2a6663950
6 changes: 3 additions & 3 deletions test/test.scala
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,11 @@ object Main{
if (file.exists && !file.delete)
throw new Exception(s"Unable to delete ${file.getAbsolutePath}")
}
val res = runCbt("../tools/giter8", Seq("createTemplate", "scala/scala-seed.g8", "test/temp", "--name=template"))
val templateDir = cbtHome / "test" / "temp"
val res = runCbt("../tools/giter8", Seq("createTemplate", "scala/scala-seed.g8", templateDir.getPath, "--name=template"))
assert(res.exit0)
println(res.out contains "Template applied")
val templateDir = cbtHome / "test" / "temp" / "template"
assert(templateDir.exists)
assert((templateDir / "template").exists)
deleteRecursively(templateDir)
}

Expand Down