Check for Windows in the tests. Fixes #32.

This commit is contained in:
Phil Hagelberg 2010-06-20 20:18:08 -07:00
parent badf8c4613
commit 607c282a0a

View file

@ -4,6 +4,7 @@
[clojure.contrib.shell :only [with-sh-dir sh]]))
(deftest test-new
(sh "lein" "new" "a.b/test-new-proj")
(sh (if (= "Windows" (System/getProperty "os.name"))
"lein.bat" "lein") "new" "a.b/test-new-proj")
(is (.exists (file "test-new-proj" "src" "a" "b" "test_new_proj" "core.clj")))
(delete-file-recursively (file "test-new-proj") false))