Permalink
Browse files

put project-base-dir in a central location

  • Loading branch information...
1 parent 0b8b06b commit 6f0035d66f97ce27f34d5b1050c4d987f09f2dbd @cemerick cemerick committed Nov 13, 2012
@@ -1,12 +1,11 @@
(ns ^{:author "Chas Emerick"}
clojure.tools.nrepl.load-file-test
(:import (java.io File))
- (:use [clojure.tools.nrepl-test :only (def-repl-test repl-server-fixture)]
+ (:use [clojure.tools.nrepl-test :only (def-repl-test repl-server-fixture
+ project-base-dir)]
clojure.test)
(:require [clojure.tools.nrepl :as nrepl]))
-(def project-base-dir (File. (System/getProperty "nrepl.basedir" ".")))
-
(use-fixtures :once repl-server-fixture)
(def-repl-test load-code-with-debug-info
@@ -1,11 +1,13 @@
(ns clojure.tools.nrepl-test
- (:import java.net.SocketException)
+ (:import java.net.SocketException java.io.File)
(:use clojure.test
clojure.tools.nrepl)
(:require (clojure.tools.nrepl [transport :as transport]
[server :as server]
[ack :as ack])))
+(def project-base-dir (File. (System/getProperty "nrepl.basedir" ".")))
+
(def ^{:dynamic true} *server* nil)
(defn repl-server-fixture

0 comments on commit 6f0035d

Please sign in to comment.