Skip to content

Commit

Permalink
Fix silly classpath test.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Nov 23, 2011
1 parent 4575143 commit 0b8f061
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions leiningen-core/test/leiningen/core/test/classpath.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
(:use [clojure.test]
[leiningen.core.classpath])
(:require [clojure.java.io :as io]
[clojure.set :as set]))
[clojure.set :as set]
[leiningen.core.project :as project]))

(defn m2-file [f]
(io/file (System/getProperty "user.home") ".m2" "repository" f))

(def project {:dependencies '[[org.clojure/clojure "1.3.0"]
[ring/ring-core "1.0.0-RC1"]]
:dev-dependencies '[[slamhound "1.2.0"]]
:repositories (:repositories project/defaults)
:root "/tmp/lein-sample-project"
:source-path "/tmp/lein-sample-project/src"
:resources-path "/tmp/lein-sample-project/resources"
Expand All @@ -34,14 +36,13 @@
["/tmp/lein-sample-project/test"
"/tmp/lein-sample-project/src"
"/tmp/lein-sample-project/resources"
"/home/phil/.m2/repository/slamhound/slamhound/1.2.0/slamhound-1.2.0.jar"
"/home/phil/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar"
"/home/phil/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar"
"/home/phil/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar"
"/home/phil/.m2/repository/ring/ring-core/1.0.0-RC1/ring-core-1.0.0-RC1.jar"
(str "/home/phil/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/"
"commons-fileupload-1.2.1.jar")
"/home/phil/.m2/repository/org/clojure/clojure/1.3.0/clojure-1.3.0.jar"])
(str (m2-file "slamhound/slamhound/1.2.0/slamhound-1.2.0.jar"))
(str (m2-file "commons-io/commons-io/1.4/commons-io-1.4.jar"))
(str (m2-file "javax/servlet/servlet-api/2.5/servlet-api-2.5.jar"))
(str (m2-file "commons-codec/commons-codec/1.4/commons-codec-1.4.jar"))
(str (m2-file "ring/ring-core/1.0.0-RC1/ring-core-1.0.0-RC1.jar"))
(str (m2-file "commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar"))
(str (m2-file "org/clojure/clojure/1.3.0/clojure-1.3.0.jar"))])

(deftest test-classpath
;; Can't test user plugins because anything could be installed.
Expand Down

0 comments on commit 0b8f061

Please sign in to comment.