Check for Windows in the tests. Fixes #32.
This commit is contained in:
parent
badf8c4613
commit
607c282a0a
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
[clojure.contrib.shell :only [with-sh-dir sh]]))
|
[clojure.contrib.shell :only [with-sh-dir sh]]))
|
||||||
|
|
||||||
(deftest test-new
|
(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")))
|
(is (.exists (file "test-new-proj" "src" "a" "b" "test_new_proj" "core.clj")))
|
||||||
(delete-file-recursively (file "test-new-proj") false))
|
(delete-file-recursively (file "test-new-proj") false))
|
||||||
|
|
Loading…
Reference in a new issue