Permalink
Browse files

add breaking test for #742

  • Loading branch information...
1 parent cc7d759 commit d7488b2bf908f23d0380bd8df5a8b8020f8643f0 @ninjudd ninjudd committed Aug 23, 2012
@@ -1,3 +1,3 @@
-(defproject middler "2.0.0-SNAPSHOT"
- :description "Automate Clojure projects without setting your hair on fire."
+(defproject middler "0.0.1"
+ :description "Test some middleware."
:middleware [leiningen.core.test.project/add-seven])
@@ -0,0 +1,4 @@
+(defproject middlest "0.0.1"
+ :description "Test explicit middleware inside a plugin."
+ :plugins [[lein-maven "0.1.0"]]
+ :middleware [leiningen.mvn/maven-checkouts])
@@ -121,6 +121,12 @@
(deftest test-middleware
(is (= 7 (:seven (init-project (read (.getFile (io/resource "p2.clj"))))))))
+(deftest test-activate-middleware
+ (is (= ""
+ (with-out-str
+ (binding [*err* *out*]
+ (init-project (read (.getFile (io/resource "p3.clj")))))))))
+
(deftest test-add-profiles
(let [expected-result {:dependencies [] :profiles {:a1 {:src-paths ["a1/"]}
:a2 {:src-paths ["a2/"]}}}]

0 comments on commit d7488b2

Please sign in to comment.