Permalink
Browse files

Fixed compile test

  • Loading branch information...
1 parent 93535c5 commit 13781500fa9458a64f34bd94e2c90d4d77f5f502 @alandipert alandipert committed Aug 24, 2010
Showing with 10 additions and 8 deletions.
  1. +5 −4 .gitignore
  2. +3 −3 test/test_compile.clj
  3. +2 −1 test_projects/sample_failing/project.clj
View
9 .gitignore
@@ -1,9 +1,10 @@
-sample/lib
-sample/classes/
-sample/nomnomnom*.jar
+test_projects/*/lib
+test_projects/*/classes/
+test_projects/*/nomnomnom*.jar
+test_projects/sample/pom.xml
classes/
lib/
leiningen*.jar
lein-swank/lein-swank*.jar
autodoc/
-/sample/pom.xml
+bin/nom
View
6 test/test_compile.clj
@@ -4,7 +4,7 @@
[clojure.contrib.shell :only [with-sh-dir sh]]))
(deftest test-compile
- (delete-file-recursively (file "sample" "classes" "nom") true)
- (with-sh-dir "sample"
+ (delete-file-recursively (file "test_projects" "sample" "classes" "nom") true)
+ (with-sh-dir (file "test_projects" "sample")
(sh "lein" "compile"))
- (is (.exists (file "sample" "classes" "nom" "nom" "nom.class"))))
+ (is (.exists (file "test_projects" "sample" "classes" "nom" "nom" "nom.class"))))
View
3 test_projects/sample_failing/project.clj
@@ -6,4 +6,5 @@
(def clj-version "1.1.0-master-SNAPSHOT")
(defproject nomnomnom "0.5.0-SNAPSHOT"
- :dependencies [[~(symbol "org.clojure" "clojure") ~clj-version]])
+ :dependencies [[~(symbol "org.clojure" "clojure") ~clj-version]]
+ :main nom.nom.nom)

0 comments on commit 1378150

Please sign in to comment.