leiningen/test/test_new.clj

11 lines
426 B
Clojure
Raw Normal View History

2009-12-31 09:36:14 +00:00
(ns test-new
(:use [clojure.test]
[clojure.contrib.io :only [delete-file-recursively file]]
[clojure.contrib.shell :only [with-sh-dir sh]]))
2009-12-31 09:36:14 +00:00
(deftest test-new
(sh (if (= "Windows" (System/getProperty "os.name"))
"lein.bat" "lein") "new" "a.b/test-new-proj")
2010-03-11 03:36:21 +00:00
(is (.exists (file "test-new-proj" "src" "a" "b" "test_new_proj" "core.clj")))
(delete-file-recursively (file "test-new-proj") false))