Hi,
I'm basically a Clojure nube with years of Java TDD / BDD experience. Just getting my toes wet with speclj 2.5.0. I've got 'lein spec' to work but 'leon spec -a' keeps throwing FileNotFoundException. Looks like it's looking for the spec files under the namespace of my project instead of speclj. I've tried various forms of (:use ...) but am at a loss.
lein -version
Leiningen 2.0.0 on Java 1.7.0_13 Java HotSpot(TM) 64-Bit Server VM
--- spec file ---
(ns myapp.core-spec
(:use [speclj.core]
[myapp.core])
)
(describe "truthiness"
(it "tests if true-or-false returns true"
(should (true-or-false))))
(run-specs)
--- file under test ---
(ns myapp.core)
(defn true-or-false []
true)
--- 'lein spec -a' output ---
----- Thu Feb 07 21:43:01 PST 2013 -------------------------------------------------------------------
took 0.12583 seconds to determine file statuses.
reloading files:
/Users/boz/dev/clojure/myapp/spec/myapp/core_spec.clj
java.io.FileNotFoundException: Could not locate myapp/core_spec__init.class or myapp/core_spec.clj on classpath:
... 15 stack levels elided ...
at fresh.core$load_nses.invoke(core.clj:166)
at fresh.core$doto_nses.doInvoke(core.clj:173)
... 1 stack levels elided ...
at fresh.core$make_fresh.invoke(core.clj:191)
... 7 stack levels elided ...
at fresh.core$make_fresh.invoke(core.clj:188)
... 18 stack levels elided ...